Witam gdy chciałem dalej zrobić else if(...)
if(komenda=="/keylogger" || komenda=="keylogger")
{
MessageBox( NULL, "Usługa chwilowo niedostępna!", "Information", MB_ICONINFORMATION | MB_OK );
}else if(komenda=="/info -computer" || komenda=="info -computer"){
MessageBox( NULL, "Usługa chwilowo niedostępna!", "Information", MB_ICONINFORMATION | MB_OK );
}else if(komenda = "/regkey -new" || komenda=="regkey -new"){
MessageBox( NULL, "Usługa chwilowo niedostępna!", "Information", MB_ICONINFORMATION | MB_OK );
}else if(komenda=="/regkey -del" || komenda=="regkey -del"){
MessageBox( NULL, "Usługa chwilowo niedostępna!", "Information", MB_ICONINFORMATION | MB_OK );
}else if(komenda=="/info -program" || komenda=="info -program")
else
{
cout<<"nie ma takiej komendy!";
}
?
to wyskakuje mi błąd w kompilerze:
39 61 C:\Users\Programming and Test\Desktop\Hackier Tools.cpp [Error] could not convert 'komenda.std::basic_string<_CharT, _Traits, _Alloc>::operator=<char, std::char_traits<char>, std::allocator<char> >(1)' from 'std::basic_string<char>' to 'bool'
45 2 C:\Users\Programming and Test\Desktop\Hackier Tools.cpp [Error] expected primary-expression before 'else'