我是C++的初学者.当我编写代码时,有时我会写#include <string>代码并且代码可以正常工作,有时我不会编写#include <string>代码并且代码不起作用.但有时它没有#include <string>.
#include <string>
所以我必须写,#include <string>以便代码有效吗?
c++ string include
c++ ×1
include ×1
string ×1