关于c++能否使用cout输出string类型
更新:HHH   时间:2023-1-7


c++在包含头文件<string>时候可以使用cout输出

#include<string>

int main()

{

    string s="中国";

    cout<<s<<endl;

    system("pause");

}

返回编程语言教程...