資源簡(jiǎn)介
c++猜數(shù)小游戲源碼(入門級(jí))
代碼片段和文件信息
#include?
#include?????????//time
#include???????//?rand
using?namespace?std;
int?main()
{
????srand((unsigned?int)time(0));????//隨機(jī)數(shù)種子
????int?ab=-1;
????a=rand()%100;?????//0-99間的隨機(jī)數(shù)
????while(a!=b)
????{
評(píng)論
共有 條評(píng)論