#include<iostream>using namespace std;void main(){int x; if(cin>>x>>1) cout<<"szutic"; else cout<<"你好,深圳大学";}
4 回答
已采纳

onemoo
TA贡献883条经验 获得超454个赞
char x = '\0'; cin >> x; if (x == '1') cout << "szutic" << endl; else cout << "你好" << endl;

有志青年P
TA贡献1条经验 获得超0个赞
我的vc++6.0只会报错误的数量不知道在哪错了
这个是慕课的报错
error: iostream: No such file or directory
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'
In function 'main':
error: 'cin' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: for each function it appears in.)
error: 'cout' undeclared (first use in this function)
error: 'endl' undeclared (first use in this function)
warning: no newline at end of file
- 4 回答
- 0 关注
- 2085 浏览
添加回答
举报
0/150
提交
取消