Project name added to the generated cout statement

master
Joeyrp 4 years ago
parent 2b4724df1c
commit 87ab9d48b8

@ -415,7 +415,7 @@ int main(int argc, char** argv)
ofs << "\n\nint main(int argc, char** argv)"; ofs << "\n\nint main(int argc, char** argv)";
ofs << "\n{"; ofs << "\n{";
ofs << "\n\tstd::cout << \"Hello, World!\";"; ofs << "\n\tstd::cout << \"Hello, World!\";";
ofs << "\n\tstd::cout << \"\\nThis is version: \" << " << project_name << "_VERSION_MAJOR << \".\" << " << project_name << "_VERSION_MINOR << \".\" << " << project_name << "_VERSION_PATCH;"; ofs << "\n\tstd::cout << \"\\nThis is " << project_name << " version: \" << " << project_name << "_VERSION_MAJOR << \".\" << " << project_name << "_VERSION_MINOR << \".\" << " << project_name << "_VERSION_PATCH;";
ofs << "\n\treturn 0;"; ofs << "\n\treturn 0;";
ofs << "\n}"; ofs << "\n}";
ofs.close(); ofs.close();

Loading…
Cancel
Save