1

我不断收到此错误,我不知道为什么!请帮忙

if(option = '1')
    {
        cout << "What word would you like to do a linear search for?" << endl;
        cin >> word;

        Search.linearSearch(250, word);
        if (comparisons >= true)
        {
            cout << "The word" << word << "was found!" << comparisons << "comparisons were made" << endl;
        }
        else
        {
            cout << "The word was not found" << endl;
        }
    }
4

1 回答 1

0

您应该尝试使用 Search::linearSearch(250, word);

于 2012-12-14T20:30:00.627 回答