正在加载图片...
[例6-2]定义工资表类型 程序模块 SALARY.H:定义工资单来 #include <dos. h> /*一定义工资表数组一*/ #define max employee 1000 定义家庭情况类型一——*/ struct family type int in double harness /*婚姻状况* int is colleague /*是否双职工 struct date birthdate_ of singleton;/*子女生 日*/ int children in school /*上学子女数 int housing area /*住房面积*1010 [例6-2]定义工资表类型 /* 程序模块 SALARY.H: 定义工资单*/ #include <dos.h> /*---- 定义工资表数组 ---*/ #define MAX_EMPLOYEE 1000 /*---- 定义家庭情况类型 -----*/ struct family_type { int in_double_harness; /* 婚姻状况 */ int is_colleague; /* 是否双职工 */ struct date birthdate_of_singleton; /* 子女生 日 */ int children_in_school; /* 上学子女数 */ int housing_area; /* 住房面积 */ };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有