标签:cout include iostream out cst class ctime 获取 i++
#include <iostream> #include<ctime> #include<cstdlib> using namespace std; int main() { int i,j; //设置种子; srand((unsigned)time(NULL)); for(i=0;i<10;i++) { j=rand(); cout<<"随机数: "<<j<<endl; } return 0; }
标签:cout include iostream out cst class ctime 获取 i++
原文地址:https://www.cnblogs.com/hdd871532887/p/8986748.html