33,311
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
#include <string>
using namespace std;
int main()
{
cout << "Hello"[true]<<endl;//------字符串与[]之间没有空格-------
cout << "-------------------" << endl;
cout << "Hello" [true]<<endl;//------字符串与[]之间有空格-------
cout << "-------------------" << endl;
cout << "Hello"[false];
return 0;
}