输入月份号,输出该月的英文月名,要求用指针数组处理

#include <stdio.h>int main (void) { char mon[][4]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; int d; char (*p)[4]; p=mon; scanf("%i",&amp;d); printf("%s\n",p[d-1]); return 0;} 法二 以下是引用ansic在2011-7-14 23:38:11的发言:#...
默认分类 | 2011-07-15 09:11 | 阅读 1063 次 | 评论 0 条
文章分类