8 اپریل، 2006 - Im required to create login and password for the users before he can ent. C and C++ FAQ; Forum Actions . Code: struct authentication { char username[10],password[10]; int category; /* 0 = student,1=teacher,2=guest */ };..