Code:
//To use a persons name


#include<iostream.h>
main()
{

int a;
char c,
cout<<"Enter name"<<"\n";
cin>>c>>;
cin.get();
cout<<"age"<<"\n";
cin>>a;

if(a=xyz)
 {
     cout<<"abc"<<"\n";
cin.get();
}
return 0;
}
The problem is that i cannot use a=xyz. I am a good QBasic Programmer. In QBasic we use

10 x=asd THEN PRINT "afddafadad";
Is there something similar to this in C++?


Saimadhav