Hi there,
Could some1 tell me whats wrong with this code...I know i shudnt b using an int variable but whats the right one for a string...
#include <iostream.h>
void main()
{
int a,b;
cout <<"Enter the first name";
cin >>a;
cout <<"Enter the 2nd no";
cin >>b;
((a=="Tom") && (b=="Pam")) ? cout<<"Yesss..." : cout<<"Noo";
}
Thanx a million