Warning W8037 vectorexample.cpp 7: Non-const function vector<int,allocator<int>>::push_back(const int &) called for const object in function operator <<(ostream &,const vector<int,allocator<int> > &)...
Type: Posts; User: Monkey Liar
Warning W8037 vectorexample.cpp 7: Non-const function vector<int,allocator<int>>::push_back(const int &) called for const object in function operator <<(ostream &,const vector<int,allocator<int> > &)...
mkay... trying it now. cheers.
hello folks,
i've been trying to run the vector example off this site. I've cut and paste it into a Dev-C++ cpp file, then used Borland to compile it, but it's just spat it back out... is there...
k...here we go. This was done on a linux by the way...
CC Room.cc
"Room.h", line 34: Error: string is not defined.
"Room.cc", line 133: Error: Room::display_room(), returning...
can anyone give me a good example of implementing the 'this' pointer in functions and methods for classes?
if the answer is yes, cheers! http://www.cprogramming.com/cboard/images/icons/icon14.gif