warning no newline at the end of file
2013-04-19 17:36
495 查看
在写C程序的时候,编译时会warning no newline at the end of file,没注意。
解决办法是:
在main函数结尾处添加回车,独立成一行。
原因:
编译器需要文件最后有一个回车,作为文件结束标志。
解决办法是:
在main函数结尾处添加回车,独立成一行。
原因:
编译器需要文件最后有一个回车,作为文件结束标志。
相关文章推荐
- warning no newline at the end of file
- error:warning no newline at the end of file
- warning no newline at the end of file
- C语言-何消除 warning no newline at the end of file
- warning no newline at the end of file
- warning no newline at the end of file
- warning: no newline at the end of file
- warning: no newline at the end of file
- warning: no newline at the end of file
- warning no newline at the end of file
- main.c :10:2 warning: no newline at the end of file
- warning no newline at the end of file
- main.c :10:2 warning: no newline at the end of file
- warning: no newline at end of file
- warning: no newline at end of file
- linux ubuntu 如何解决warning: no newline at end of file?
- Warning: no newline at end of file
- 如何解决warning: no newline at end of file?
- 如何解决warning: no newline at end of file
- warning: no newline at end of file的原因