You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
419 B
17 lines
419 B
// A simple program that outputs a file with the given name
|
|
#include <fstream>
|
|
#include <iostream>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
std::ofstream outfile("main.cc");
|
|
outfile << "int main(int argc, char* argv[])" << std::endl;
|
|
outfile << "{" << std::endl;
|
|
outfile << " // Your code here" << std::endl;
|
|
outfile << " return 0;" << std::endl;
|
|
outfile << "}" << std::endl;
|
|
outfile.close();
|
|
|
|
return 0;
|
|
}
|