Your code is invalid C++.
Code:
#include<iostream.h> // Deprecated header.
main() // ERROR: Missing explicit return type (should be int).
{
int a;
char c, // ERROR: Declaration does not end with ;
cout<<"Enter name"<<"\n";
cin>>c>>; // ERROR: Missing identifier after "c>>".
cin.get();
cout<<"age"<<"\n";
cin>>a;
// ERRORS:
// 1. a is a char, not a string.
// 2. = is assignment, not comparison.
// 3. xyz is interpreted as a variable, not a string.
if(a=xyz)
{
cout<<"abc"<<"\n";
cin.get();
}
return 0;
}
You need to go back to your books!