Advertisement

<<<---newbie needs help

Started by February 01, 2002 05:49 PM
0 comments, last by death_jester 22 years, 9 months ago
I cant seem to find whats wrong with this program: #include <iostream> int main() { char sin; std::cin>> sin; if (sin == ''x'') std::cout<<"1a2fa3f1a3f1a23f13a1f3a2df1d321f54f1a3f1d4fc"; else(sin == ''m'') std::cout<<"7e9r7ere9f7e89r7e98r7e8r9er7e87a78v7a87f42f13a"; return 0; } anybody?
I think this:

else(sin == ''m'')

needs to be this:

else if(sin == ''m'')

Also, it would help if you stated what was supposed to happen (program is supposed to compile) and what did happen (like compiler output).

This topic is closed to new replies.

Advertisement