Hi guys,
When making a program, when do we use "#include<string.h>"?
Before using string as a data type for a variable do we have to use :
#include<string.h>?
Also why do we use "#include<stdlib.h>" in a program?
Thanks
This is a discussion on About string and stlib within the C++ Programming forums, part of the General Programming Boards category; Hi guys, When making a program, when do we use "#include<string.h>"? Before using string as a data type for a ...
Hi guys,
When making a program, when do we use "#include<string.h>"?
Before using string as a data type for a variable do we have to use :
#include<string.h>?
Also why do we use "#include<stdlib.h>" in a program?
Thanks
string.h
stdlib.h
How To Ask Questions The Smart Way
Btw, the std::string type is not in <string.h>, but in <string> .
Last edited by manasij7479; 06-12-2012 at 02:32 AM.
Manasij Mukherjee | gcc-4.8.0 @Arch Linux
Slow and Steady wins the race... if and only if :
1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !