: hi actually i wanted to use a string data type available in c++. i
: tried to use it like this
:
: #include<string.h>
: ....
: ....
: {
: string str("ALPHA");
: }
: it is giving an error and am using turbo 3.0 c++ compiler..
: plz help me!!!
:
I'm a rookie programmer this is how i write.
#include <string.h> //ill make it simple for you here
#include <iostream.h> //same thing not following standard as im bad at it too
int main()
{
string str1 = "ALPHA";
cout<<str1;
getchar();
}
Use Visual C++ Express since most people I've asked seem to use it. Go with the flow.