very simple code to match letters to numbers
Hi guys,
I'm a complete beginner to C. I have been reading quite a bit about it but not yet got stuck in, so I want to start right now.
I want to write a program that assigns a word to each number from say 1-100.
What's the best way to do this? I know that I could have an array for each of those values, but I can't put a string in an array right?
Do I need to combine pointers and arrays here?
You don't have to post, the code - even a word of guidance in the right direction would be much appreciated.
Thanks in advance of any replies posted,
Kop442000.
PS - assigning each word to a number, I want the program to generate a number randomly from this range (think I am ok with that), and then the user has to try and match the word. They are then told if they are successful or not. I guess how I do that part would depend on how you guys advise me to achieve the first part.