49,762 Topics
![]() | |
Im just beginning on C++, and one of the main problems that Ive encountered that I would like to get past is the fact that with simple programs you can only enter one thing, and after the code executed after that function is done, all you can do is press … | |
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 … | |
I have decieded to learn c++ just wondering what compilers you would all suggest? thanks | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 { … | |
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 … | |
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 … | |
:?: 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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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, … | |
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 … ![]() | |
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 … ![]() | |
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: ![]() | |
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 … | |
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 … ![]() | |
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 … | |
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 : … | |
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: ![]() | |
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 … ![]() | |
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( ? ) … | |
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 … | |
Can somebody help me in getting cursor position using C++ Programming language on a UNIX operating system. :cool: | |
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 … |
The End.