General C++ Programming (Page 78)

Virtual classes / functions
 
In a header file: class GenericClass { public: virtual int doit(int* array, int sizeOfA...
[5 replies] Last: No. Generally, the way it works is that polymorphic classes store poin... (by L B)
by umera
C++ program to convert normal text to mobile text
 
can sumone help me with a program that reads in a normal text file and converts it into mobile phon...
[5 replies] Last: I am talking about noisedisruption.txt. you have no error checking fo... (by writetonsharma)
help please
 
Area of the room Your task is to write a program that will find the area of room in a given square...
[8 replies] Last: They should say: "Reported by [insert name here]" (by Script Coder)
Noobie at Coding
 
Task: Write a function: - exp(x,y): - where x is positive (possibly a decimal) and y is a positive...
[3 replies] Last: If you don't know what it does, then why did you write it? ;) (by L B)
kindly Remove this 1 simple error
 
Gives Error: string undeclared identifier in void setName (string first, string last); #ifndef per...
[2 replies] Last: Thanks abhishekm. (by Rehan FASTian)
by cerlmc
Help with simple if else statements
 
I'm doing a project for school pretty simple but I must be over looking something because when i wro...
[1 reply] : Have you tried outputting compensationBonus after you calculate it? ... (by L B)
Save to File problem
 
I have a project that is suppose to take data for employees, put them into vectors, then allows the ...
[1 reply] : I was able to get it to work. (by crimsonzero2)
Arrays
 
Trying to do a homework assignment for a class and cannot figure out how to read a file into an arra...
[3 replies] Last: You probably shouldn't use vectors, then. The logic is still the same,... (by L B)
by rgork
How can I return a value from a pointer?
 
Probably unclear title, but I'll try to explain better. Here is what's up: struct Square {int...
[1 reply] : The way you're trying to dereference " myclass " is actually the synta... (by Framework)
Array of structs w/constructor
 
I can't seem to remember everything I should about constructors. I'm looking for a way to create an ...
[2 replies] Last: Yep. Worked like a charm. Thanks. (by codedope)
functions
 
Write the function void readTestScores (double &exam, double &tavge) that does the following: - pri...
[no replies]
by ibilal
Mid of stack using LinkedList
 
Hi all, I am unable to make any logical algorithm to access middle of stack. Please guide some wi...
[6 replies] Last: It is strange enough but std::stack has no constructor with initialize... (by vlad from moscow)
Using an enum defined in class
 
Hello everyone. I am trying to write a game in C++ with SDL, and I have a class that allows me to...
[6 replies] Last: Thanks for the answers, but why do I have to do it in one file? I'm u... (by doug4)
Initializing generic type that can be both primitive and object
 
I have defined my own class, Queue, which inherits from my own class, LinkedList. I have been using ...
[2 replies] Last: Whoa, thanks. I did not know that. Seems useful! (by estomagordo)
by Danja
C++ maze
 
Hello, I've been working on a C++ maze assignment but I've become stuck -- below is the code I ha...
[3 replies] Last: You will need a lot more code if you want to know if a move is valid a... (by IceThatJaw)
Program help
 
PART I Put all the code in a .doc file and include a UML diagram for the Airplane class. You can u...
[14 replies] Last: It actually is. (by Tim0195)
C++ Two Dimensional Array with Pointor
 
int sum(int (*ar2) , int size); // I dont know what the ar2 is going on int main(){ i...
[4 replies] Last: @alantheweasel int sum(int (*ar2) , int size); // I dont know what th... (by vlad from moscow)
error: no matching function for call to ...
 
When I run this program this build message appears: no matching function for call to Alpha::Alpha(Al...
[4 replies] Last: oh, I didn't put arguments! i'm so stupid! Thank you for your help! (by konakona)
undefined symbol
 
hello,i am creating a program that uses an indexList class and a class designed to store terms (5X^1...
[2 replies] Last: It's a bit hard to get through 500 lines of code and offer advice. W... (by Stewbond)
bar graph for character count?
 
Hi. i am working on an assignment to count the amount of words, sentences and questions in a string,...
[no replies]
Pages: 1... 76777879
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.