当你运行这段代码
#include<bits/stdc++.h> using namespace std; int main() { char s[]="qwq"; while(1) { cin>>s; if(s=="help") { cout<<"qwq"; } } return 0; }
你会发现无论咋输入都不会输出qwq。
qwq
判断条件改成help\n也没用。
help\n
请问如何判断输入的是help?或者说输入help在电脑中存储的是什么?
help