I'm thinking of making a program that will test the user's knowledge of vocabulary, which would be obtained from a .txt or .doc file.
The only problem is that I don't know how to organize the words/definitions so that the program can read it.
Vocabulary Program
Started by 5te4lthX, Aug 05 2008 04:07 PM
1 reply to this topic
#1
Posted 05 August 2008 - 04:07 PM
|
|
|
#2
Posted 05 August 2008 - 09:59 PM
Use a string array for both the words and the definitions. Make sure the matching definitions index is the same as the word. You can even use a random number function to call a couple of other random definitions to make a multiple choice sort of question. You will need some sort of data store for the information; a .txt file would do fine. Just separate the records by some sort of symbol to use for sorting later (like a dash or something) and use something to separate the word and its definitions as well. This way when you read from the file later it is easy to separate out the different records. Assign the records to the arrays and then use them as you like.


Sign In
Create Account

Back to top









