1 条题解
-
0
C :
#include<stdio.h> struct student { long num; char name[20]; char sex; int year; int month; int day; }; int main() { int i; struct student stu[3]={{1001011,"王丽",'F',1995,10,12}, {1001012,"李军",'M',1995,5,24}, {1001013,"赵斌",'M',1994,2,25}, }; struct student *p=stu; for(i=0;i<3;i++) { printf("%ld %s %c %d/%d/%d\n",(p+i)->num,(p+i)->name,(p+i)->sex, (p+i)->year,(p+i)->month,(p+i)->day); } return 0; }
- 1
信息
- ID
- 3066
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者