7 years, 10 months ago.

what is the reason ?"string is undefined despite i put #include<string.h>

help me please , i"m a beginner

1 Answer

7 years, 10 months ago.

You can use std::string rather than string, or use "using namespace std;" in your source code.

http://stackoverflow.com/questions/5499189/stdstring-vs-string-in-c