When do I use '#include <string>' at the start of a C++ program?
https://stackoverflow.com/questions/27350164/when-do-i-use-include-string-at-the-start-of-a-c-program
WEBDec 8, 2014 · Do I only use #include <string> if a variable represents a string? Yes. Use #include <string> when you use a variable that has type std::string. The code "text here", contrary to intuition, is not a std::string; it is a string literal, and a C-style string, and a const char[10] convertible to const char*. Welcome to C++ with its legacy oddities.
DA: 34 PA: 16 MOZ Rank: 79