Beginners - February 2009 (Page 22)

by Dili
Custom class problem (strings)
 
hey all! this might look silly but i'm having problems using strings in a custom class. here is the code: word.h #ifndef WORD_H #define WORD_H ...
[6 replies] Last: I have a new lovely error, is unknown to you.... I think, mayb... (by EZO)
File counter (to be run from t3h prompt)
 
#include <iostream> #include <fstream> using namespace std; int main(int argc, char *argv ) { if(argc == 0) { cout << "Expected argume...
[2 replies] Last: Yay! Worked! Thanks. (by QWERTYman)
Refer to an element in a dynamic array
 
I've made an array of objects, located in the free store ("number" is a var given by the user): student *x=new student ; "student" is a class. An object o...
[1 reply] : I recently posted a similar question. It seems that the pointer in ... (by Ganellon)
by Cyanz
array dilemma
 
hi iam new to c++ and i have been working on a array it is fairly simple but i have a small dilemma. well you see when i move around in my 2d array it all works...
[5 replies] Last: oooh i see know thanks allot for the help (by Cyanz)
rasing variable to 2nd power
 
Say you have variables A B C, that the user puts in a side of a triangle. Obviously I am attempting to make a program that checks to see if a 2 +b 2 =c 2 is tr...
[8 replies] Last: You need to make sure that variable c is the hypotenuse of the right t... (by psault)
how to save on a file
 
i want to know how can i save an object of a class on a file this doesnt work: (project is a class and database is an object of it ) void save(project data...
[7 replies] Last: You can use special font for code with the code-tag (#format on the ri... (by Scipio)
Comment Stripper - Logic Errors
 
Hello all, this is my first post here. I have been enrolled in a C++ class for about 3 weeks, and found this site after my first class and have been reading th...
[2 replies] Last: Thanks for the fast reply!! The way I'm doing it now is (paraphra... (by larsy87)
diff between [\n] and [endl]
 
am i correct in stating that \n means a new line and that endl means end the line so what are the differences between the two instructions? for a complet...
[4 replies] Last: thank you for the explanations. (by KuzuRanger)
Overloading operator=
 
I am a bit confused with overloading operator=. Here is my function call, not working of course... Main.cpp -------------- Polynomial test1; Polynomial ...
[4 replies] Last: Damn. I knew C# was going to overwrite something. I totally ignored th... (by helios)
February 2009 Pages: 1... 202122
  Archived months: [jan2009] [mar2009]

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