#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",&d); printf("%s\n",p[d-1]); return 0;}
法二
以下是引用ansic在2011-7-14 23:38:11的发言:#...
#include "stdio.h"void main(){ int a[10]; int i,j,t; printf("input 10 numbers :"); for(i=0;i<10;i++) scanf("%d",&a[i]); printf("\n"); for(j=0;j<9;j++) for(i=0;i<9-j;i++) if(a[i]>a[i+1]) { t=a[i]; a[i]=a[i+1]; a[i+1]=t; ...
Microsoft Visual C++ 6.0