Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<vector>

Status
Not open for further replies.

revit

Programmer
Oct 27, 2001
36
IL
I need to decalare a private field in a class that will be of type vector (from stl library) how do i do it?
the daclaration:
class goo{
vector <class RBTree*> t;
public:
...
}
is not working...

thanks in advance.
 
I think all you need to do is remove the word &quot;class&quot; from your instantiation like this: vector<RBTree*> t;
 
hi revit here is a small example how u can do this. My name is santosh thankachan. Reply me if it has been of ne help to u . My email id is : santoshthankachan@hotmail.com

# include <vector>

class Employee
{
int empid ;
char empName[80] ;

} ;


typedef vector <class Employee *> EmpVector ;

class TestVector
{
private :
EmpVector empList ;

public :

} ;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top