正在加载图片...
用结构数组,利用键盘输入结点中的数据。 重点看 scanf(%d”,&a); n.x-a 结构数组,数组中的元素为结构类型的数据,如n81 ∥结构2c #include <stdio. h ∥预编译命令 #define null o ∥定义空指针常量 struct TM ∥定义TM结构 int x, y; ∥整型变量x,y struct TM *next: ∥指向TM结构的指针10 用结构数组,利用键盘输入结点中的数据。 重点看 scanf(“%d”,&a); n[i].x=a; 结构数组,数组中的元素为结构类型的数据,如n[8] // 结构2.c #include <stdio.h> // 预编译命令 #define null 0 // 定义空指针常量 struct TM // 定义TM结构 { int x,y; // 整型变量x,y struct TM *next; // 指向TM结构的指针 };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有