Dear Sir,
I am trying to print the string with the following code,
but I am getting errors like
Undefined symbol 'string'
Undefined symbol 'str'.
#include<conio.h>
#include<string.h>
#include<iostream.h>
void main()
{
string str = "My name is shridhar";
cout<<"What is your name"<<str;
getch();
}
I think the problem is with C++ version.
Can you please tell me latest C++ version where One uses #include<string> instead of
#include<string.h> and using namespace std; instead of #include<conio.h>
Plase help for above queiries Thanks