在编译C文件的时候报 warning : no newline at end of file 这个错误的解决办法
原因是因为 *.c 文件的末尾需要是一新行,所以解决办法就是在 文件的最后一行回车
例子:
#include<stdio.h>
int main(){
puts("hello word\n");
return 0;
}
在上面的中括号的下面在来一个换行 就可以了
以下是截图说明::
在编译C文件的时候报 warning : no newline at end of file 这个错误的解决办法
原因是因为 *.c 文件的末尾需要是一新行,所以解决办法就是在 文件的最后一行回车
例子:
#include<stdio.h>
int main(){
puts("hello word\n");
return 0;
}
在上面的中括号的下面在来一个换行 就可以了
以下是截图说明::