General C++ Programming - May 2013 (Page 34)

Please help.... composition!!!
 
I need to write a program with 9 files: 4 header files with 4 implementation files and one Driver. There will be one base class (Account) and 2 subclasses (Chec...
[3 replies] Last: In function ‘int main()’: 211:61: error: no matching function fo... (by ne555)
by Zoo
Saving and Loading a file
 
Hi. I am trying to make a billing file in C++. I was going okay till I encountered saving and loading step. I am trying to save a file(with file extention .txt)...
[no replies]
Incompleat type is not allowed
 
I am trying to get a program to take two files and place them into a third file. I have searched all over this website looking for a solution and i can seem to ...
[1 reply] : > My issue is that i keep getting an error 'incomplete type is not all... (by ne555)
neeeed help pleaseeeee
 
void addgrades(string name , int studentID , int number_of_courses ) { int c=1; const int ISIZE=5000; float course_grade ; double sum=0,number_of_hours...
[1 reply] : It is not working is not an error message Be more explicit (by ne555)
Problems with dll's and lib's
 
Hey, I've made a dll (and lib) for an additional maths library and it appears to export perfectly fine but when I try and import it into other projects I get th...
[3 replies] Last: Well i'll eat my words... The FULL path works fine, if I added the dir... (by TheBeardedQuack)
segmentation fault
 
Trie& Trie::operator+= (const string & word){ TrieNode * curr = root; for (int i = 0; i < word.length(); i++) { if (curr->left...
[2 replies] Last: This is my struct: struct TrieNode { int data; bool end; ... (by Stephaniei492)
Program Closes Unexpectedly
 
When this programs runs, it asks for the supervisor's name then closes right after the input. Any help would be appreciated. Employee.h #ifndef EMPLOYEE_H ...
[5 replies] Last: Try adding cin.get() after all inputs and before return 0; it works wi... (by SkyDriver2500)
Look for appropriate data structure
 
Hello, I have the following question: I need to implement some task that takes a pair of strings, and do a dual search, the first search is according to the ...
[5 replies] Last: Just another short question...is there a way to use the find function ... (by chessmaster)
PLZ help!! object composition.
 
I need to write a program with 9 files: 4 header files with 4 implementation files and one Driver. There will be one base class (Account) and 2 subclasses (Chec...
[no replies]
Posix thread join causes a bus error
 
So, my code was working, but now when I try to join my threads I get a bus error! //join the threads pthread_attr_destroy(&attr); for (int i = 0; i < numTh...
[1 reply] : Here is all my code: https://gist.github.com/anonymous/5541239 The err... (by CosmicQuahog)
replacing charaters a to c , and c to a
 
hello i need a small cpp to replace all the a to c and c to a so something like this :" cat can run fast = act acn run fcst" string s; replace (s.b...
[1 reply] : use a lookup table, for example #include <string> #include <iostream... (by Cubbi)
No Default Constructor
 
I am getting an error on line 13 of the .cpp saying there is no default constructor. Any help would be appreciated. Employee.h #ifndef EMPLOYEE_H #define ...
[2 replies] Last: Okay. I added default constructors to my headers. Now when I run the p... (by cdashdash)
Copy Unsigned Char Array Into Another
 
Hello all, I am having some trouble performing this. I am not sure, if my unsigned char arrays are null terminated, but I don't think so. Here is my code: They...
[12 replies] Last: Thank you very much, Cire :) (by knowNothing)
G++.exe: No such file or directory
 
Folks, I am getting this error.... G++.exe (No such file or directory). this is what its says: Compiler: Default compiler Building Makefile: "C:\Program...
[1 reply] : http://www.cplusplus.com/forum/articles/36896/ Program not on %PATH% ... (by keskiverto)
by aruna
Multiple classes inheritance
 
Need help for a c++ program comprising of multiple classes with class musical instrument as main class having sub classes type of instruments such as piano, bra...
[6 replies] Last: Thank u soo much it will surely help me understand how to frame the pr... (by aruna)
How to do substring to get the last 4characters in c
 
let says i have char *yytext = "p103_stb" 0r "p0_stb" or "p100_stb" How to do substr to get the "_stb" in C?
[12 replies] Last: Same problem as with the string::find : if strstr returns null pointer... (by keskiverto)
how to #define strings
 
i have a #define SIZE 32 that i change on compilation time as needed. what i want to do is combine SIZE with strings in another #define something like t...
[1 reply] : #define SIZE 32 #define STR_EXPAND(tok) #tok #define STR(tok) STR_EXP... (by Peter87)
Login system
 
how to add delete verify and print users in a login system.
[8 replies] Last: I do Hope So! :) ;) (by hansaaa)
STL container? (1,2)
 
can someone help me with what STL is? I mean i have a program but i am not sure on how to implement it using STL containers like which type of STL container and...
[20 replies] Last: okk i got it, will try to use iterators and check..!!! (by shilpa24)
General computational question:
 
Hi, just a general question, if anybody has any further knowledge on this: I am looking at doing some fairly large matrix operations, and, in the process of th...
[2 replies] Last: Well, I think, it can be argued, in the case that I have, that it can,... (by hansaaa)
May 2013 Pages: 1... 3233343536... 47
  Archived months: [apr2013] [jun2013]

This is an archived page. To post a new message, go to the current page.