mirror of
https://github.com/tiennm99/c-plus-plus.git
synced 2026-10-11 03:13:07 +00:00
16 lines
256 B
C++
16 lines
256 B
C++
#include <iostream>
|
|
#include <fstream>
|
|
#include <ios>
|
|
#include <cstdlib>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
ofstream ofile;
|
|
ofile.open("in.txt", ios::in);
|
|
for (int i = 0; i < 1000; ++i) {
|
|
ofile << 1 << endl;
|
|
}
|
|
ofile.close();
|
|
}
|