摘要:
1、 #include <stdio.h> #include <string.h> #define NUMBER 5 #define NAME_LEN 64 typedef struct{ char name[NAME_LEN]; int height; float weight; long sch 阅读全文
posted @ 2021-06-04 13:01
小鲨鱼2018
阅读(45)
评论(0)
推荐(0)
摘要:
c语言中结构体数组。 1、 #include <stdio.h> #include <string.h> #define NUMBER 5 #define NAME_LEN 64 typedef struct{ char name[NAME_LEN]; int height; float weigh 阅读全文
posted @ 2021-06-04 12:14
小鲨鱼2018
阅读(176)
评论(0)
推荐(0)
摘要:
1、 #include <stdio.h> struct xyz{ int x; long y; double z; }; struct xyz input(int a, long b, double c) { struct xyz tmp; tmp.x = a; tmp.y = b; tmp.z 阅读全文
posted @ 2021-06-04 11:07
小鲨鱼2018
阅读(64)
评论(0)
推荐(0)
摘要:
1、 #include <stdio.h> #define NAME_LEN 64 typedef struct student{ // 为类型声明 typedef名, Student相当于 struct student char name[NAME_LEN]; int height; float 阅读全文
posted @ 2021-06-04 10:27
小鲨鱼2018
阅读(62)
评论(0)
推荐(0)
摘要:
c语言中返回结构体的函数。(相同类型的结构体可以相互赋值。)。 1、 #include <stdio.h> struct xyz{ int x; long y; double z; }; struct xyz fun(int a, long b, double c) { struct xyz tmp 阅读全文
posted @ 2021-06-04 09:49
小鲨鱼2018
阅读(2927)
评论(0)
推荐(0)