#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;
點擊展開后面3條

有志青年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 關注
- 2136 瀏覽
添加回答
舉報
0/150
提交
取消