View Single Post
  #2 (permalink)  
Old July 15th, 2005, 01:16 AM
kumar_raj13 kumar_raj13 is offline
Authorized User
 
Join Date: Jul 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kumar_raj13
Default

For 'a' you have to use data type char instead of int.

Like


char i;
cout<<"gfgfgfsgs";
cin>>i;
if(i=='a')


and then it will be ok.

rajkumar
Reply With Quote