unbale to use string class

Newbie Member
1Oct2009,13:22   #1
rawaldream's Avatar
HI all
I am just learning the C++ programing.
I am not able to use string class on my program. I installed turboc3 in the system.
Include <String.h> libraray
and there in INclude directory there is string.h file.

but still I am getting the compilation erroe undefined name string
I am using like this
include <iostream.h>
include<string.h>
int main()
{
string a;
cin >> a;
return 0;
}
error message a undefined.
string not defined

could any one help me

thanks in advance.
could send me mail rawalssm@gmail.com
Mentor
2Oct2009,12:54   #2
xpi0t0s's Avatar
Try "#include" instead of "include".
Newbie Member
3Oct2009,12:11   #3
rawaldream's Avatar
Quote:
Originally Posted by xpi0t0s View Post
Try "#include" instead of "include".

Thanks I used the same thing.
still unable to use String class.
Mentor
4Oct2009,22:44   #4
xpi0t0s's Avatar
Possibly string only exists in the std namespace; if so you'd have to prefix it with std::.