摘要:
#include<stdio.h>#include<stdlib.h>#include<malloc.h>//包含malloc函数的头文件 struct Item//定义结构体{ char name[20]; int num; }; struct Item *I;//申请Item类型的指针 int 阅读全文
posted @ 2020-04-08 22:01
iiiiiki
阅读(218)
评论(0)
推荐(0)
摘要:
1 首先://注意在C和C++里不同 在C中定义一个结构体类型要用typedef: typedef struct Student { int a; }Stu; 于是在声明变量的时候就可:Stu stu1;(如果没有typedef就必须用struct Student stu1;来声明) 这里的Stu实 阅读全文
posted @ 2020-04-08 21:40
iiiiiki
阅读(164)
评论(0)
推荐(0)

浙公网安备 33010602011771号