1 条题解
-
0
C :
#include<stdio.h> struct student { long num; char name[20]; char sex; int year; int month; int day; }; void display (struct student *pt) { printf("%ld %s %c %d/%d/%d\n",pt->num,pt->name,pt->sex, pt->year,pt->month,pt->day); } int main() { struct student stu={1001011,"王丽",'F',1995,10,12 }; struct student *p=&stu; display(p); return 0; }
- 1
信息
- ID
- 3068
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者