Difference between <string> and <string.h>?

  • <string.h> contains old functions like strcpy, strlen for C style null-terminated strings.
  • <string> primarily contains the std::string, std::wstring and other classes.

string.h is a C header not a C++ header, period!