#include <iostream> #include <cstdlib> #include <ctime> #include <fstream> using namespace std; int main() { ofstream out ("D:\zhang\\output.txt"); int n=1000; srand((unsigned)time(NULL)); int x; while(n-->0) out<<' '<<rand()%10; }
Powered by: 博客园 Copyright © 2024 蓝空 Powered by .NET 9.0 on Kubernetes