Linux 不报警的Hello World
以前都是在VC ++ 6.0下。vc下这样写:#include<stdio.h> voidmain() { printf("hello,world
"); }是不会提示警告的。但是放到Gcc环境里面就难说了测试环境:CentOS 5.5 Final ,gcc 4.1.2。vim test.c后,保存cc -Wall test.c -o test ./test后,提示警告:‘main’ 的返回类型不是 ‘int’既然返回的不是int,那把...