English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

Decide exactly what you want the program to do, code, test, debug, repeat last two steps as needed.

2006-09-11 15:01:33 · answer #1 · answered by Anonymous · 0 0

I'll assume that you already know how to program. A neat data structure for a spell checker is something called a "trie".

I'll let you read the wiki on the details, but the idea is to build a tree where each node contains a single letter. A path from root to leaf node therefore spells out a word. So, given a word that you want to check, you just surf down from the top of the tree. If you don't reach a leaf, then the word is not in the trie, and the assumption is that it is a mispelling.

This is a dynamic data structure, which can be confusing for Java and c# programmers. But just remember that all objects in java are actually references to objects, and you should be fine.

2006-09-11 15:37:02 · answer #2 · answered by arbeit 4 · 0 0

do a search on http://www.codeproject.com/ I just did a similar thing 2 days ago in C++, and got some reference code from there.

If you want to do it all yourself, the first thing you need is a dictionary file with all of the words in it, or a trie file (words are in a tree format).

2006-09-12 02:32:44 · answer #3 · answered by justme 7 · 0 0

Assuming you've programmed before get an editor for C and a compiler and some tutorials and Learn.

If you've never programmed before I would suggest a simpler language like QBASIC.
Visit:
http://www.qbasicnews.com/learn/tutorials.shtml

2006-09-11 15:05:59 · answer #4 · answered by Developer NC 3 · 0 0

fedest.com, questions and answers