[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: New to aspell
From: "Daniel A. Scholnick" <dschol () tahoe ! cs ! dartmouth ! edu>
Date: 1999-09-02 4:53:19
Message-ID: LYR14511-16475-1999.09.02-00.52.52--kevinatk#home.com () franklin ! oit ! unc ! edu
[Download RAW message or body]
Hi,
I am new to aspell and I have been trying to compile a small test program
to see if I can use aspell to put a spell checker into a web based email
client I wrote with some friends.
Anyway, I have not been able to get my test program to work. All I want
to do is check the spelling of a word and get suggestions if it is
wrong. I am able to compile and run successfully the test program that
came with the distribution (aspell.cc). Since it's short, I've pasted my
code onto the bottom of this email. The program seg faults on the
suggest function. Could anyone tell me what I am doing
incorrectly or does anyone have a very simple test file they could send me?
Thanks in advance for your help. I'm pretty psyched to get this thing
working.
-Dan Scholnick
void main() {
string word;
aspell checker;
aspell::Suggestions suggestions;
cout << "Please enter word to check: ";
cin >> word;
suggestions = checker.suggest(word);
if (suggestions.size()) {
for (int s = suggestions.size() - 1; s != 0; --s)
cout << " " << suggestions[s] << ",";
cout << " " << suggestions[0] << endl;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic