No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Ok is there any why i can call the base class this pointer or object from with in a derived class? Example: [CODE=cplusplus] class BASE { public: BASE () {} BASE(BASE & b){} virtual ~BASE () {} virtual void Method(){cout << "BASE::Method called"; return; } }; class DERIVED: public BASE … |
|
[CODE=cplusplus] bool BODYTYPE::Seek(BODYTYPE * body) { string line; string key(body->style); size_t found = ' '; fstream file("..\\Data\\BODYTYPE.txt",ios::in); if (!file.is_open()) { cout << "Unable to open file \n"; return false; } file.clear(); file.seekg(0); for(;getline(file,line);) { if((found = line.find(key,0)) == 0 ) { file >> body->style >> body->doorCount; return true; } } … |