pointer of vector in Netbeans/ VS 2013

Hi people, got this question:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Book.h:
#include <string>
using std::string;
class Book{
public:
Book(string name);
...... // other functions
..... // other functions

string getName(){
return this->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;
} 

Th.
cMc
Last edited on
Topic archived. No new replies allowed.