旧版课程,制作完成于2017-12-18
猜数字游戏
#include<iostream>
#include<string>
#include<time.h>
using namespace std;
int main()
{
cout<<"Guess number"<<endl;
srand((int)time(0));
int number=rand()%10+1;
cout<<number<<endl;
return 0;
}
rand()//随机