Skip to content

Instantly share code, notes, and snippets.

@leafduo
Created July 23, 2012 18:46
Show Gist options
  • Select an option

  • Save leafduo/3165358 to your computer and use it in GitHub Desktop.

Select an option

Save leafduo/3165358 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
FILE * fout = fopen("output.txt", "w");
int i;
for (i = 0; i < 1e6; ++i)
fprintf(fout, "%d", 0);
return 0;
}
#include <fstream>
using namespace std;
int main()
{
fstream fout("output.txt");
for (int i = 0; i < 1e6; ++i)
fout << 0;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment