Hi,
While using sting related functions in a c++ program which header file
one should use.
strings.h or string.h
thanks
shankha
"string.h" is a C-header file that contains char* related function.
For example, all the good old functions like strlen() etc are declared
in <string.h>. The way to include this file in a c++ program is to say
#include <cstring>. On the other hand, <string> is a c++ header file
that contains the definition for c++ class string. The way to include
this header file in a c++ program is to say #include <string>. The
common thing between cstring and string is that both of these have all
the definitions enclosed in the namespace "std".