this is what I did
#include<iostream>
#include<string>
using namespace std;
using std::string;
Type: Posts; User: deepblue
this is what I did
#include<iostream>
#include<string>
using namespace std;
using std::string;
My compiler verison is Microsoft Visual C++ v6.00, is it too old?
Gives me:
error C2653: 'std' : is not a class or namespace name
Maybe i have to reinstall compiler...
Yes, i tried that.
But isn't there an actual string data type, i.e. string name="John Doe";
shouldn't it work? it doesn't even turn blue color like other data type.
am i missing something?
for some reason my compiler doesn't see String data type.
below is my code
#include<iostream.h>
#include<string.h>
void main()
{