看板 NTUBIME103HW 關於我們 聯絡資訊
最後一題 程式碼如下 #include "stdafx.h" #include "iostream" #include <time.h> using namespace std; int _tmain(int argc, _TCHAR*argv[]) { srand(time(NULL)); int X=0, Y=0; for(int i = 0 ; i < 1000 ; i++) (rand()%2) ? X++ : Y++; cout<< X <<" "<<Y <<endl; return 0; } 後面的我繼續補 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.34.202.142
stan999950:親一個> ..^ 01/09 16:47
kn930121:維峻又大神了 01/09 17:21
ss355227:我想知道全部的答案> < 維峻當個英雄吧 01/09 21:43
hankhank:謝啦!! 01/10 23:20