-
assignment question...
I'm not sure how to approach this problem. I have an array of 40 names stored in array names[40][20]. When I print the names out to a file I need to change them to a different name. Is there a way to associate the current name to the printed name?
Thank you!
example:
current name printed name
hot rod rodster
coupe hardtop
convertible ragtop
bigblock largemtr
. .
. .
. .
and so on
-
Use a structure
Code:
struct {
char currentname[20];
char printedname[20];
} names[40];
-
thanks...I should have thought of it!