摘要: 懒猫老师作业之学生信息系统 #include <stdio.h> #include<string.h> #include<malloc.h> #include<stdlib.h> #include<stdbool.h> #define NO_LENGTH 20 #define NAME_LENGTH 阅读全文
posted @ 2021-09-24 22:18 StarOu 阅读(144) 评论(0) 推荐(0)
摘要: 以返回值的方式输出 1 #include<stdio.h> 2 typedef struct Point{ 3 int x; 4 int y; 5 } Point; 6 void Display(Point point) 7 { 8 printf("x:%d \n",point.x); 9 prin 阅读全文
posted @ 2021-09-13 11:24 StarOu 阅读(197) 评论(0) 推荐(0)
摘要: 1.结构体的定义 结构体中定义的属于属性。结构体类似一种特殊的变量。 第一种 声明 struct book books; 注:struct book 类似于 int 类型 第二种 注:typedef 是给类型起别名 声明 Book books; 第三种 由于第二种写的麻烦。等同第二种 第四种 在声明 阅读全文
posted @ 2021-09-12 21:11 StarOu 阅读(358) 评论(0) 推荐(0)