adding new line at end of file
I am trying to add a new line at the end of my main.cpp file. This is a result of a compiler error that says i do not have a new line at the end of the file. What code do I add to my file to make it complile?
|
try checking your brackets "{}" make shure they all have matchs
|
it's not a compiler error but a warning (at least for me). gcc seems to like having a newline at the end of source files but it doesn't affect the compilation. just open up your source file in an editor and set the cursor to the end of the file and press the enter key. that should get rid of that warning.
|
well you file is *.cpp try using g++ instead
|
All times are GMT -5. The time now is 02:58 AM. |