int ans; //存放電腦產生的答案. srand( (unsigned) time(NULL) ); //啟動亂數產生器. ans = rand( )%100+1; //產生一個1~100的數. printf("Guess(1~100):");.
確定! 回上一頁