
-----------------------------------
The_$hit
Tue Apr 05, 2005 6:22 pm

Multiple Users
-----------------------------------
Does any one know how to create multiple users in C++ using only a single class?

-----------------------------------
Tony
Wed Apr 06, 2005 8:24 am


-----------------------------------
using multiple instances of the said class

-----------------------------------
The_$hit
Wed Apr 06, 2005 11:05 am


-----------------------------------
How do you do it so the user can make an instance and then call on any of the other instances that they have created?

-----------------------------------
Martin
Wed Apr 06, 2005 11:11 am


-----------------------------------
Be more specific. What are you trying to do?

-----------------------------------
The_$hit
Mon Apr 11, 2005 5:19 pm


-----------------------------------
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.

-----------------------------------
wtd
Mon Apr 11, 2005 8:29 pm


-----------------------------------
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.

class User
{
   /* yada yada */   
};

int main()
{
   std::vector users(10);

   // accessing the 2nd user
   users[1];
}
