#include<iostream>
#include<conio.h>
#include<string>
using namespace std;
struct Umer
{
string name;
int age;
};
int main()
{
struct Umer u;
struct Umer* u1=&u;
cout << "Enter Name : ";
cin >> u1->name;
cout << endl;
cout << "enter Age : ";
cin >> u1->age;
cout << u1->name<< ":"<< u1->age<< endl;
system("pause");
return 0;
}
#include<conio.h>
#include<string>
using namespace std;
struct Umer
{
string name;
int age;
};
int main()
{
struct Umer u;
struct Umer* u1=&u;
cout << "Enter Name : ";
cin >> u1->name;
cout << endl;
cout << "enter Age : ";
cin >> u1->age;
cout << u1->name<< ":"<< u1->age<< endl;
system("pause");
return 0;
}