I am taking a c++ programming class and we have gotten to strings. When I try to use string.h with Dev-C++, it gives errors such as String undeclared. I am copying the program straight out of a book, and it has worked with other compilers. Please help, and if you need to, email me at FakeTigren@hotmail.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am taking a c++ programming class and we have gotten to strings. When I try to use string.h with Dev-C++, it gives errors such as String undeclared. I am copying the program straight out of a book, and it has worked with other compilers. Please help, and if you need to, email me at FakeTigren@hotmail.com
Use
#include<string>
without the '.h'.
Regards,
ChuckB
Ah, thank you very much. Can't thank you enough.