How do I include the string header?

后端 未结 9 1202
旧时难觅i
旧时难觅i 2020-12-05 10:01

I\'m trying to learn about strings, but different sources tell my to include different headers.

Some say to use , but other

9条回答
  •  旧时难觅i
    2020-12-05 10:02

    The C++ string class is std::string. To use it you need to include the header.

    For the fundamentals of how to use std::string, you'll want to consult a good introductory C++ book.

提交回复
热议问题