hej mam problem z tym voidem .. juz nie wiem co jest nie tak od godziny sie mecze ...
void p_ocen()
{czyszczenie2();
cout << "===========" << endl;
cout << "OCENA ANIME" << endl;
cout << "===========" << endl;
cin >> wyb;
if(wyb=="pomoc"||wyb=="help"||wyb=="opis"||wyb=="?")pomoc();
else if(wyb=="wyjdz"||wyb=="exit"||wyb=="quit"||wyb=="koniec")czyszczenie2();menu();
else if(wyb=="ocena"||wyb=="ocen")czyszczenie2();ocen();
else
{
czyszczenie2();
cout << "==============" << endl;
cout << "BLEDNA KOMENDA" << endl;
cout << "==============" << endl;
cout << "Zobacz liste komend:" << endl << endl;
cout << "pomoc, help, opis, ? -> Opis liczenia oceny anime." << endl;
cout << "wyjdz, exit, quit, koniec -> Powrot do menu glownego." << endl;
cout << "ocena, ocen -> Przechodzi do oceniania anime" << endl;czyszczenie();p_ocen();
}
}
Logi błędów
||=== Build: Debug in Asystent (compiler: GNU GCC Compiler) ===|
C:\Documents and Settings\Shiro\Pulpit\Asystent\main.cpp||In function 'void p_ocen()':|
C:\Documents and Settings\Shiro\Pulpit\Asystent\main.cpp|130|error: 'else' without a previous 'if'|
C:\Documents and Settings\Shiro\Pulpit\Asystent\main.cpp|131|error: 'else' without a previous 'if'|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Z góry wielkie dzieki za pomoc :)