【C++】21点游戏代码

#include #include #include<time.h> #include<stdlib.h> using namespace std; #define NUM 1000 int j=2;//定义为全局变量 int randNum[NUM];//因为rand()函数有一定的缺陷,所以在程序中定义了randNum数组来存放随机数 //即使使用了种子函数srand(),由于程序运行时间比较
相关文章
相关标签/搜索