Usually in C/C++ you want to end the file with a newline (some reasons for this are listed here http://stackoverflow.com/questions/72271/no-newline-at-end-of-file-compiler-warning). It's largely historical because modern compilers can get around the isssue, but yeah, it's a good habit to get into.