#include <fstream>
#include <iostream>
#include <string>
const std::string expression1 =
"one;two;three;Efour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
"fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
"twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
"twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
"four";
const std::string expression2 =
"one;two;three;Tfour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
"fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
"twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
"twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
"four";
const std::string expression3 =
"one;two;three;Wfour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
"fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
"twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
"twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
"four";
const std::string expression4 =
"one;two;three;Xfour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
"fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
"twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
"twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
"four";
int main()
{
std::ofstream outfile("/Users/me/Desktop/codereviewCSVparser/outfile.csv");
for (int i = 0; i < 250*1000; ++i) {
outfile << expression1 << "\n"
<< expression2 << "\n"
<< expression3 << "\n"
<< expression4 << "\n";
}
return 0;
}
I2luY2x1ZGUgPGZzdHJlYW0+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KCmNvbnN0IHN0ZDo6c3RyaW5nIGV4cHJlc3Npb24xID0KICAgICJvbmU7dHdvO3RocmVlO0Vmb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gIlxuIgogICAgICAgICAgICA8PCBleHByZXNzaW9uNCA8PCAiXG4iOwogIH0KICByZXR1cm4gMDsKfQo=
Main.java:1: error: illegal character: '#'
#include <fstream>
^
Main.java:1: error: class, interface, or enum expected
#include <fstream>
^
Main.java:2: error: illegal character: '#'
#include <iostream>
^
Main.java:3: error: illegal character: '#'
#include <string>
^
Main.java:11: error: class, interface, or enum expected
const std::string expression2 =
^
Main.java:17: error: class, interface, or enum expected
const std::string expression3 =
^
Main.java:23: error: class, interface, or enum expected
const std::string expression4 =
^
Main.java:30: error: class, interface, or enum expected
int main()
^
Main.java:33: error: class, interface, or enum expected
for (int i = 0; i < 250*1000; ++i) {
^
Main.java:33: error: class, interface, or enum expected
for (int i = 0; i < 250*1000; ++i) {
^
Main.java:33: error: class, interface, or enum expected
for (int i = 0; i < 250*1000; ++i) {
^
Main.java:38: error: class, interface, or enum expected
}
^
Main.java:40: error: class, interface, or enum expected
}
^
13 errors