|
[php]
#include <iostream>
#include <fstream>
using namespace std;
int fileout(int j);
int main () {
int i;
ofstream out("output.dat");
if(!out) {
cout << "Cannot open file." << "\n";
return 1;
}
for (i=0; i<100; i++) {
fileout(i);
}
out.close();
}
void fileout(int j)
{
out << j << "\n";
}
[/php]
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"
SearchLores.org
|