Hunspell返回bool而不是单词

时间:2013-05-29 13:30:08

标签: hunspell

请帮忙解决Hunspell的问题,不能让这些东西运作良好。 这是我的代码,它返回bool值TRUE而不是单词的建议。

int main(array<System::String ^> ^args)
{
    char *aff = "c:\\en_US.aff";
    char *dic = "c:\\en_US.dic";
                Hunspell *spellObj = new Hunspell(aff,dic);
                const char *named = "hello";
                int result = spellObj->spell(named);
                char ** wlst;
                char ** wlst2;
                int ns = spellObj->suggest(&wlst,named);
                int abc = spellObj->analyze(&wlst2,named);
                 Console::WriteLine(ns);
                for (int i = 0; i<ns; i++)                  
                {

Console::WriteLine(&wlst[i]); 
                }
                spellObj->free_list(&wlst,ns);
                delete spellObj;
    Console::WriteLine(result);
    getchar();
    return 0;

我如何才能使这个建议有效?

1 个答案:

答案 0 :(得分:0)

必须使用std :: cout而不是Console :: WriteLine(facepalm)

相关问题