Sir,
i have done this code
but an error is coming......
the function getline should have a prototype
undefined symbol 'string'
what shoul i do?
I am compiling this code in turbo c++ compiler.....
#include<string.h>
#include<iostream.h>
#include<conio.h>
using namespace std;
int main()
{
string number;
string name;
cout << "Please enter number." << endl;
getline(cin, number);
cout << "Enter your name " << endl;
getline(cin, name);
cout << "\n " << name<< "\t" << number << endl;
return 0;
}