Another doubt. How to use <vector> can not access methods of the class aluno.
--- Code-------
std::vector<aluno> a(nr_alunos);
cout << "\nTotal:" << a[1].quantidade();
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: Declaring Array at runtimeThreaded View
|
Click Here to Expand Forum to Full Width |