We can define the variable as string data type or not.
I have read by including the header file string.h, you can declare string type variable.
But my program is having errors:- UNDEFINED SYMBOL STRING
How can we declare the string variable??Code:#include<iostream.h>
#include<string.h>
int main()
{
string Name;
name="sonia";
cin.get();
return 0;
}
