資源簡介
c++猜數小游戲源碼(入門級)
代碼片段和文件信息
#include?
#include?????????//time
#include???????//?rand
using?namespace?std;
int?main()
{
????srand((unsigned?int)time(0));????//隨機數種子
????int?ab=-1;
????a=rand()%100;?????//0-99間的隨機數
????while(a!=b)
????{
- 上一篇:學生成績評價
- 下一篇:百錢買百雞問題(c++解決方案).docx
評論
共有 條評論