08/05/03 18:38:13
URLリンク(www.sgnet.co.jp)
ここのサイトで
#include <stdio.h>
void main()
{
printf( "好きなことを書きましょう" );
}
ってなっているので、実際にやってみると
testa.c:1: error: missing terminating " character
testa.c: In function `main':
testa.c:3: warning: return type of 'main' is not `int'
というふうにエラーがでます。
で、大学では
#include <stdio.h>
int main(void)
って習ったのですが、どう違うんですか?こっちではうまくいったのですが。