随笔分类 - C语言上机实验
上机指导与习题选解(第2版)
主编:杨路明
摘要:#include #include #define N 10 typedef struct student { int num; float score; struct student *next; }STU; STU *create() { int i; STU *p,*head=NULL,*tail=head; for (i=0;inum,...
阅读全文
摘要:#include #include #define N 10 typedef struct student { int num; float score; struct student *next; }STU; STU *create() { int i; STU *p,*head=NULL,*tail=head; for (i=0;inum,...
阅读全文
摘要:#include #include #define N 10 typedef struct student { int num; float score; struct student *next; }STU; STU *create() { int i; STU *p,*head=NULL,*tail=head; for (i=0;inum,...
阅读全文
摘要:本题没有加入正确日期判断功能 #include struct date { int year; int month; int day; }; int leap_year(int a); int cal_day(struct date a); /*判断闰年*/ int leap_year(int a) { if(a%400==0||(a%4==0&...
阅读全文
摘要:#include #include typedef struct node { int data; struct node *next; }NODE; NODE *head=NULL; /*函数声明*/ NODE *createlist_head(int len); NODE *createlist_end(int len); NODE *createlist_so...
阅读全文
摘要:1、 #include#includevoid main(){ int *a,*b,*c,*min; a=(int *)malloc(sizeof(int)); b=(int *)malloc(sizeof(int)); c=(int *)malloc(sizeof(int)); min=(int *)malloc(sizeof(int)); printf("输...
阅读全文

浙公网安备 33010602011771号