Or if you use C++ Standard Library:
Code:
#include <string>
std::string my_string;
You don't need the .h extension for the C++ standard library. There is a "bridge" for the inclusion of C standard library in standard C++:
Code:
#include <cstdlib>
#include <cmath>
...
--Micha