正在加载图片...
∥结构1c #include <stdio. h> ∥预编译命令 #define null o ∥定义空指针常量 struct TM ∥定义结构TM int x,y ∥整型变量x,y struct TM *next ∥指向TM结构的指针 void maino ∥主函数 ∥主函数开始 ∥声明整型变量 ∥声明TM结构n1~n7,结构指针head,p struct TM nl, n2, n3, n4, n5, n6, n7, * head, * p7 // 结构1.c #include <stdio.h> // 预编译命令 #define null 0 // 定义空指针常量 struct TM // 定义结构TM { int x,y; // 整型变量x,y struct TM *next; // 指向TM结构的指针 }; void main() // 主函数 { // 主函数开始 int i; // 声明整型变量 // 声明TM结构n1~n7,结构指针head,p struct TM n1,n2,n3,n4,n5,n6,n7,*head,*p;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有