大神们我才学,这个为甚编译不出来,请大神们不吝赐教。
# include <stdio.h>void main ()
{
enum weekday{mon=1,tue,wed,thu,fri,sat,sun}work;
work=wed;
printf("wednesday is the %drd day\n");
}
2016-03-14 22:55
[此贴子已经被作者于2016-3-14 23:16编辑过]

2016-03-14 23:14
程序代码:test.c test.c(7): warning C4473: “printf”: 没有为格式字符串传递足够的参数 test.c(7): note: 占位符和其参数预计 1 可变参数,但提供的却是 0 参数 test.c(7): note: 缺失的可变参数 1 为格式字符串“%d”所需 Microsoft (R) Incremental Linker Version 14.00.23506.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:test.exe test.obj
[此贴子已经被作者于2016-3-14 23:25编辑过]

2016-03-14 23:23
2016-03-14 23:47

2016-03-14 23:48
2016-03-15 02:39
2016-03-15 09:51
2016-03-15 17:34

2016-03-15 18:42
2016-03-15 19:01