次は私のコードコンパイラが関数への未定義参照を示しています。何をすべきかを詳しく教えてください。 の定義されていない参照についてのエラーは、です。isPalindrome()はブール値ですか?コンパイラは関数への未定義参照についてエラーを返します
int main()
{
cout << "Please enter a string: ";
cin >> input;
cout<<"Vowel Count"<<vowelcount(input);
while(1)
{
if(isPalindrome())
{
palindrome_count++;
}
}
cout<<"palindrome_count"<<palindrome_count;
}
bool isPalindrome(string input)
{
do{
if (input == string(input.rbegin(), input.rend())) {
cout << input << " is a palindrome\n";
}
}
while(1);
}
次回は完全なプログラムを投稿してください。問題に関連する 'main()'の前からいくつかの要素を省略しました –