Book.h:
#include <string>
using std::string;
class Book{
public:
Book(string name);
...... // other functions
..... // other functions
string getName(){
returnthis->name;
};
private:
string name;
};
main.cpp:
#include "Book.h"
#include <vector>
int main(){
vector<Book*> book;
.... //do somthing
.... // do something
Book b; // generate object of datatype Book
b.getName(); // if u put point after b ( b. ) netbeans,visual studio 2013 shows
//all public methods of class Book
book[0]->getName(); /* if u write -> operator after book[0] ( book[0]-> )
Visuals Studio 2013 shows all public methods of class
Book, but Netbeans does not. Question is ,why netbeans
doesnt show member functions of class Book, when u write
book[0]->, but VS 2013 does show.
Any ideas?
*/
return 0;
}