C program arrays - strings

Hi everyone!

I started a month ago learning the language of C. Its very difficult sometimes for me to figure out the code, and even it is difficult to think how to find the algorithm.
I would like to ask a question about a programming task:
"Write a program that receives a seven-digit phone number and find out which words can be formed by this number that included in the file words.txt."
So i write a seven-digit number and the program checks which words fits from txt file words.txt.
The ratio of numbers - letters is like this:
http://img339.imageshack.us/i/thld.jpg/
I thought that i can have two arrays, one to check the numbers and one to check the letters, but i dont know how to build them.
(Sorry for my bad english)

I would be grateful for some inspiration.
You can make an array of 10 strings so that your_array[0] = "XYZ",your_array[1] = "AB" etc
Topic archived. No new replies allowed.