Search Results

Showing results 1 to 3 of 3
Search took 0.01 seconds.
Search: Posts Made By: winrawr ; Forum: C++ and child forums
Forum: C++ Feb 13th, 2009
Replies: 9
Views: 443
Posted By winrawr
I suppose you could just make printdetails use cout.


void printDetails(dog dogObj){

cout << "The dog is " << dogObj.getAge() << " years old." << endl << endl;
cout << "Dog's Gender?: " <<...
Forum: C++ Feb 13th, 2009
Replies: 9
Views: 443
Posted By winrawr
if it's working, you should mark the thread as solved, it's my first one :)
also, use [ icode] just for inline code like this, but if you're pasting C++ code, use [ code=cpp] ... [ /code] and it...
Forum: C++ Feb 13th, 2009
Replies: 9
Views: 443
Posted By winrawr
The problem with the char is this line:
davesDog.setGender("M");
"M" is a character array,
you are passing the letter M and a NULL character ('\0') to the setGender function (the NULL character...
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC