The_$hit wrote:
i am trying to enable the user to create a new user save its data create many more and then be able to call on any one of the users to recall its information. I would like the pr ogram to allow a person to log in and out of accounts. I was thinking of doing this by creating an array of pionters to a class but i cannot figure out how to let the user call on a certain instance.
code: |
class User
{
/* yada yada */
};
int main()
{
std::vector<User> users(10);
// accessing the 2nd user
users[1];
} |