um something i have been wondering for a long time is. how do u make it so the user inputs a word and the program identifies the word as a number so like if someone typed the word frog and it reconized it as the number 5.

Recommended Answers

All 2 Replies

You'd create an array of words ahead of time. Then when you have input, simply search through the array until you find it. The location where it's found is the number that the word equals.

whoa thanks alot that answered two of my questions in one no i totally understand what arrays are for and stuff.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.