main.c :10:2 warning: no newline at the end of file 修复这个警告,在文件结尾回车一下就行了.可以很少会有人去仔细探究,为什么gcc会给出这么一个警告? 原因其实也很简单,因为标准规定如此.C99第5.1.1.2节这样写道: Each instance of a forward slash character (/) immediately followed by a new-line character is deleted, splicing…