I want to store information about users. When a new user is added my program needs to look thru each user record to see if that name is allready in use. Should I do this using classes? How do I search thru each class?
I thought of having the class like this
And then I would use the next pointer to look thru all classes but what would be the best way to fill in the next pointer?Code:class User
{
char Name[20];
class *Next;
}