2021年7月22日 — C/C++ 之亂數函式放在stdlib.h / cstdlib 裡面,在使用時直接呼叫rand() 便可。 ... srand(seed); // 以時間序列當亂數種子; for(i=0; i<5; ++i) ...
確定! 回上一頁