codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  I need your help_ My last exam..help..help.. me...  rockfanskid at 14:57 on Friday, December 22, 2006
 

My project seems to be simple.. but.. with me... It is so hard..
Built a program to check spell(English).
Indication:
input a sentence(in win32 console). Enter.. and ... our program will check spell(one word-step by step). If it is right... get out... the meaning.. Else... get out the synonym.
It also can update new words...
Let me know the code... in C++.
Thanks for helping me...
I love everybody so.

  Re: I need your help_ My last exam..help..help.. me...  mmarab at 08:57 on Tuesday, January 02, 2007
 

I'm guessing this post is a joke. but i will answer it anyway, i cant believe you actually asked for the code, i dont think anyone will be stupid enough to actually give you the code.

But i will give you a simple explanation of how i would do a poor spell checker:

I would brake the string into tokens, and then work on each word at a time matching it up against a database of words and see if you get a match.

You will then have to design your own algorithm so that you can find similar woulds to incorrect ones, a way that this could be done quickly would be to find all words which have the same letters as the incorrect word or maybe at least 80% of the letters. This would be very crappy but it would work.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  how to access innerhtml element
•  Printing in JScript
•  Re: small question
•  Re: I need your help_ My last exam..help..help.. me...
•  Re: Text to Speech Converter
•  Re: where can i download javax.speech package
•  .net
•  combobox
•  Auto Mail Notification


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007