原始问题:
c++中怎么输出一个字符串
使用cout语句`c++
include
using namespace std;
int main()
{
string str = "Hello World!";
cout << str << endl; // 输出字符串
return 0; }
c++中怎么输出一个字符串
使用cout语句`c++
using namespace std;
int main()
{
string str = "Hello World!";
cout << str << endl; // 输出字符串
return 0; }
Prev:c++中怎么判断2个字符串是否相等