1. Request member non-class type… C++
use -> instead of .
It also occurs when u call a non-const method using a const object.
2. error: expected primary-expression before '.' token
You have not created the object of class and you must be trying to access some member of class.
3. Use smart pointers from STL if you wanna avoid the headache of deallocating the pointer.
4. Use clear() to call deconstructor of all the object of a vector class.
Will post other later/....
No comments:
Post a Comment