⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assignment6-1-1.cpp

📁 This is solution code c++ in class lesson.
💻 CPP
字号:
#include<iostream>
#include<fstream>
#include<cstdlib>
#include<ctime>
using namespace std;
int main()
{
    srand((unsigned int) time(0));
    ofstream fout("data.txt");
    for (int i=0;i<30;i++)
    {
        fout << (rand() % 100) + 1 << endl;
    }
    fout.close();
    system("pause");
    return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -