1 solutions
-
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
Information
- ID
- 17481
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By