作者showgood (小豬少棒)
看板ESOE-99
標題[課業] 一支只屬於葉世"半"的C++程式..
時間Tue Apr 19 22:35:12 2011
可能有很多人沒空看FB 所以這裡再PO一次
順便可以賺賺P幣 XDD~
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int i;
cout<<"輸入老胖子的排名\n";
cout<<"卷";
cin>>i;
if(i==1){
cout<<"老胖子說:\n";
cout<<"好險沒GG\n";}
else{
cout<<"老胖子說:\n";
cout<<"幹!!!!GG了\n";}
system("pause");
return 0;
}
編譯器表示
1成功 0錯誤 0警告 原著 孟勳哥 Good Job !!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.241.206
※ 編輯: showgood 來自: 140.112.241.206 (04/19 22:39)
1F:→ germany1301:根本沒用到cmath 多引入浪費系統資源 冗程式 劣退。 04/20 23:22