為什么這個(gè)代碼不對(duì)
#include
int main() { ? ?int sale=120; //銷(xiāo)售業(yè)績(jī)?yōu)?20萬(wàn) ? ?int year=1; //剛剛進(jìn)入公司1年 ? ?//完善代碼 ? ?if (sale>100&&year>=2) ? ?{ ? ? ? ?printf("恭喜你獲得優(yōu)秀員工獎(jiǎng)"); ? ?} ? ?else ? ? ? ?printf("很遺憾,期望你再接再厲"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?return 0; } 誰(shuí)能告訴我, 為什么這樣不對(duì)。
2016-06-02
你的頭文件呢?