srand ((unsigned) time(NULL));. Note:使用time()函數時須include<time.h> 只要放在程式一開始的地方,千萬別放在跑亂數的迴圈中,因為CPU執行指令極 ...
確定! 回上一頁