|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
constructor which has a vector
hi all
i am new to c++. can anyone pls tell me how to initialise a constructor which has a vector such as... class countries { public: countries::countries (string name,vector <person*> inside_person ... private: string _name; vector <person*> _inside_person; } i have another class call person and i want to display its contain in vector. |
|
#2
|
|||
|
|||
|
Try to use [0] ....[10] to bring the output of the vector
wink, Less than $1 per month web hosting URL |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > constructor which has a vector |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|