|
From: Dane E. <DE...@pa...> - 2004-08-12 18:35:57
|
Hi all, =20 Thank you in advance for any help you can offer. I want to create a vector of student objects and then access the members of the objects. I started with: =20 vector<students> kids[10]; // to declare a vector of 10 student objects named kids then I wanted to: cout << kids[3].fname << endl; // fname is a string member in my student class.=20 =20 This won't compile. It gives me only an ' as the message for the error. =20 What am I doing wrong? =20 Best regards, =20 Dane =20 |