#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
//*
int main(){
const string s = '!' + "!!";
cout << s; //输出什么,为什么?
system("pause");
}
//*/
本文展示了一个使用C++进行字符串输出的例子,并解释了如何创建一个包含特殊字符的字符串及如何将其输出到屏幕。
#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
//*
int main(){
const string s = '!' + "!!";
cout << s; //输出什么,为什么?
system("pause");
}
//*/
1478

被折叠的 条评论
为什么被折叠?