how would i get something like
char something[20]
to equal a name when something occurs in my program. like if the user typed 1 (just an example), the char something[] would equal the string "name".
thanks in advance.
-werd
how would i get something like
char something[20]
to equal a name when something occurs in my program. like if the user typed 1 (just an example), the char something[] would equal the string "name".
thanks in advance.
-werd
Look up the strcmp() function.