Thread
:
Basic C++ Problems
View Single Post
#
7
10-07-2004, 12:27 AM
Scorpious2k
Demi-God
Join Date: Mar 2003
Location: USA
Posts: 1,067
Muuss is right.
You made cat a type char so the compare should be:
Code:
if (cat=='1') cout << "Welcome to Cat1"; if (cat=='2') cout << "Welcome to Cat2";
Otherwise you are testing for ctrl+A or ctrl+B.
__________________
Maybe I should try making one of these servers...
Scorpious2k
View Public Profile
Send a private message to Scorpious2k
Visit Scorpious2k's homepage!
Find all posts by Scorpious2k