hi,thanks for the reply.however when i run the terminal,when i entered the name and press enter,it just entered to next line and how prompt for enter age..
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::cin;
using std::string;
int main(int argc, char **argv)
{
cout << "Enter you name : ";
string name;
cin >> name;
cout << "Enter your age : ";
int age;
cin >> age;
cout << name << ":" << age;
return 0;
}