/* spellRight.cpp example and starting point for other code. */ #include #include #include "AspellWrapperClass.hpp" int main( int argc, char** argv ) { if( argc == 2 ) { AspellWrapper speller("en_US"); cout << speller. error << endl; cout << "Spelling for: " << argv[1] << endl; if( speller.checkWord( argv[1] ) ) { cout << "Your spelling is good!" << endl; } else { cout << "Might we suggest: " << endl; alternatives & list = speller.suggestWords(argv[1]); for( int l=0; l < list.size(); ++l ) { cout << list[l] << endl; } } } return 0; }