49,761 Topics

Member Avatar for
Member Avatar for alsoagirl

I have read in problems "INFIX" AND CHANGED THEM TO "POSTFIX" or RPN notation, however i need to evaluate the problems and i can't get this to work. I am not sure where to go from the infix to postifix i have. Please help. My Stack.h is just a basic …

Member Avatar for alsoagirl
0
103
Member Avatar for tommy_tucker198

I have decieded to learn c++ just wondering what compilers you would all suggest? thanks

Member Avatar for alsoagirl
0
180
Member Avatar for blackdove

Can someone help me please? I've got 17 errors and 3 warnings. The main problem is that it keeps telling me that "Triangle" isn't a class name :confused: i'm so confused. Could you also help me with any other problems that you see? Thx in advance. (list of errors at …

Member Avatar for blackdove
0
226
Member Avatar for tonja1196

I am working on a lab and having trouble developing a class to run with the program. I have completed all the arithmetic for the program but not sure how to included the functions in with a "class". The instructions are to develope class called "rational"- and should contain the …

Member Avatar for prog-bman
-1
115
Member Avatar for tuskyballer

I'm about 3 weeks into my C++ class. I already made a simple program below that calculates grade averages and received an A. Now my teacher wants me to turn in three variations of it, replacing the goto with a while, do while, or for loop. I have experimented and …

Member Avatar for Stack Overflow
0
707
Member Avatar for nanodano

Hey guys, I am trying to write a section of a program that reads in data from a file and stores the data into an array. The problem is the length of the file can vary, and I need to know how many items to store in the array.(I really …

Member Avatar for Tight_Coder_Ex
0
96
Member Avatar for ohnbabygal

hi im tryin to read some info (both characters and integers) from an input file and save them into the sorted list. it is a big project and i cant put all the files i have over here. so i'll just put the part im having a problem. i have …

Member Avatar for Dave Sinkula
0
109
Member Avatar for seeplusplus

alright, here i have this code i wrote....but it tells me now i have to have a public member function that will add two rational numbers, and have the result be stored in reduced form.......hmmmmmm......heres my code: RATIONALL [code] #include <iostream> using std::cout; using std::cin; using std::endl; class rational { …

Member Avatar for Dave Sinkula
0
117
Member Avatar for Morinar

Okay, I need to read in a binary file from stdin and stick it in an array. The file contains binary representations of floating point numbers. I need to make sure that my array is sized properly based on the number of elements. It is quite easy to do with …

Member Avatar for Dave Sinkula
0
133
Member Avatar for cap2361

ok, help!!! I'm totally lost. I have to use a file stream program and add names to file, then keep count of file names, then display the count of names entered and the names entered. Use a loop to enter names until prompt to end. these are just two of …

Member Avatar for cap2361
0
145
Member Avatar for DaveSS

:?: Hi i am in my first C++ class and have already written two simple C++ programs. Im working on another using functions. I have to write 3 functions to calculate the area, cost, and retail price for wooden boxes and a main function to have the user input information …

Member Avatar for DaveSS
0
121
Member Avatar for Lapari

Hello, can anybody help me please? I am new to C++. I need help with assignment that calculate income tax. thank you. instruction: ******* 1.Set up a project called CTax. 2.Add to your project a class called GRTax. 3.The member variables for this class are: float mTaxableIncome, float mTaxRate, and …

Member Avatar for murschech
0
108
Member Avatar for boujibabe

I have been given an assignment to write a class to accomodate the following code: [code] int getMenuOption (); int main () { int option; int id; char name[80]; //create a Salesperson object and sets all 12 monthly sales to 0. Salesperson sp; cout << "Enter name: "; cin.getline(name, 80); …

Member Avatar for boujibabe
0
282
Member Avatar for rharvison

Hi all. I am very new at this stuff; first C++ Programming class with no background whatsoever. We are asked to create the design work and coding to generate an invoice given certain criteria. I wrote the program using the info and directives provided but I am coming up with …

Member Avatar for rharvison
1
161
Member Avatar for rporter1

I have found out through the compiler that you cannot declare and initialize an array within a class header file. I was trying to figure out how I might go about getting a 5 by 14 array initialized as a private mamber within the class. I have included the header …

Member Avatar for Tight_Coder_Ex
0
199
Member Avatar for VeG

was wondering if someone could help me on this slight problem my rogram compiles but a section doesnt seem to run.. } void main() { clrscr(); int one, two, three; char choice=' ', input[5]; while (choice != 'e') { cout<<"\nPlease enter +,-,*,/ or sqrt and then two numbers,\nsepperated by spaces, …

Member Avatar for Acidburn
0
110
Member Avatar for s47221288

This is my project about: league table , print result of score i attach all my code in filename c++.zip -------------------------------------------------------- my program : 1. you must select O to open teams.txt 2. then select I to input a score 3. select P to print a result ps.- this program …

Member Avatar for Siersan
0
56
Member Avatar for alastair18

I am rather inexperienced at C/C++ so hopefully my question will be easy to answer. I have created a struct which contains vectors. I read in data from a file into the various vectors in each struct do a bit of maths, write the results to another file, clear the …

Member Avatar for Siersan
0
100
Member Avatar for Tripoli178

I'm was working on a c++ program that inolved calsses and when i got done with it was running good. Now I need to use that program in GUI. Is thier any advice on using the C++".exe" file in GUI Thanks :rolleyes:

Member Avatar for Siersan
0
29
Member Avatar for Genar Codina

I am trying to call a stored function (which makes basically a select query)from a VC++ program using OCI. The description of the stored function is: [code] FUNCTION patrick.P_DICTIONARY_FOR_RISK_GROUP RETURNS REF CURSOR Argument Name Type In/Out Default? ---------------- ------------- --------------- V_RISKGROUP VARCHAR2 IN V_DICTIONARY VARCHAR2 IN V_MARKETDATA VARCHAR2 IN V_MODE …

0
91
Member Avatar for s47221288

so i have 4 integer that are int m = rand() % 3+ 0; int n = rand() % 3 + 0; int x = rand() % 3 + 0; int y = rand() % 3 + 0; and i want to random in 0-3 range so how can i …

Member Avatar for Siersan
0
106
Member Avatar for syphyr_0707

Hello all, I am taking a C++ class after not touching it for about 4 years now... I am rather dusty. My book is horrible, I am trying to randomly select a switch case for a word output. This is my latest attempt: ******************************************************* [code] void right(); void wrong(); int …

Member Avatar for syphyr_0707
0
94
Member Avatar for s47221288

Hi, I'm a thai student ... now i have a premiership project but i can't pass this problem that is , How to random matching football team ? example I have 4 team in `vector<string>` name [0]=a [1]=b [2]=c [3]=d I want to matching them such as week 1 : …

Member Avatar for s47221288
0
103
Member Avatar for Gav2

Have been issued a problem. 'Design a program using the top down stepwise refinement. This should include a structure chart and pseudo code' The program is to control a temperature process, with two reference temperatures. Dont understand a word of this - can anyone help PLEASE? :sad:

Member Avatar for Siersan
0
113
Member Avatar for migthyjohn

i hate C++. i have been working through the C++ for dummies book, and i have yet to make any sense out of it. the only thing that i have been able to grasp is the i/o parts. it is so hard. maybe i havent given it a chance to …

Member Avatar for Siersan
0
113
Member Avatar for samyn

hi .. im doin an assignment on edlin text editor.. while implementing the insert new line function i need to exit a loop when a key combination is pressed.. inside the loop there will be some lines reading input from the user..so will be somting like below while( ? ) …

Member Avatar for samyn
0
113
Member Avatar for cap2361

when I complile this program and then try to run it I get error LNK1201. So I started over and left it complile to c:\ and when I try to run it I get file could not be opened. I think the objective is to compile on c:\ and save …

Member Avatar for cap2361
0
119
Member Avatar for mrb260478

Can somebody help me in getting cursor position using C++ Programming language on a UNIX operating system. :cool:

Member Avatar for vegaseat
0
111
Member Avatar for noyz

the problem is not opengl coding so is not that much to work :D the problem is that i want to be copyed the lib and dll next to exe program how can i do that and there is a program like directx9.0c for opengl ??? and if it is …

Member Avatar for noyz
0
114
Member Avatar for dallin

I'm using visual studio .net c++ and I'm looking for the easiest code to drop the 0 on 0.233 to .233 when displaying floating point variable on screen. Thanks.

Member Avatar for BountyX
0
123

The End.