View Single Post
  #7  
Old 10-07-2004, 12:27 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

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...
Reply With Quote