Hmmmm. what kind of variable is username?
"char username" or "char username[20]"? There''s a big difference.
"char username" only stores one letter, while "char username[20]" stores nineteen letters plus a special character to let the computer know that the end of the string is reached.
You might also want to look into the standard string class, found under the header file string.h
If that isn''t your problem, then I have no idea what''s going on.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement