文档详情

C语言程序设计教室管理系统(源代码)).pdf

发布:2020-12-19约9.58千字共5页下载文档
文本预览下载声明
C C语言程序设计——教室管理系统 (源代码) 语言程序设计——教室管理系统 (源代码) 非常有用的。 非常有用的。 #include stdio.h  #include stdio.h  #include stdlib.h  #include stdlib.h  #include string.h  #include string.h  #define szSTR 64  #define szSTR 64  #define fileDB c:\\contact.txt  #define fileDB c:\\contact.txt  struct CONTACT {  struct CONTACT {  char num[szSTR];/* */  char num[szSTR];/* */  教室编号 教室编号 char site[szSTR];/* */  char site[szSTR];/* */  教室位置 教室位置 char snum[szSTR];/* */  char snum[szSTR];/* */  座位数 座位数 char tv[szSTR];/* */  char tv[szSTR];/* */  有无多媒体 有无多媒体 char use[szSTR];/* */  char use[szSTR];/* */  是否可用 是否可用 };  };  typedef struct CONTACT CON;  typedef struct CONTACT CON;  #define ANUM 1  #define ANUM 1  #define ASITE 2  #define ASITE 2  #define ASNUM 3  #define ASNUM 3  #define ATV 4  #define ATV 4  #define AUSE 5  #define AUSE 5  #define BFULL 0xFF  #define BFULL 0xFF  int OPER[6]   {BFULL, ANUM, ASITE, ASNUM, A,ATUVSE};  int OPER[6]   {BFULL, ANUM, ASITE, ASNUM, A,ATUVSE};  void input(CON * s, int mask)  void input(CON * s, int mask)  {  {  if(mask  ANUM) { printf( ); scanf(%s, s-num); }  if(mask  ANUM) { printf( ); scanf(%s, s-num); }  请输入教室编号: 请输入教室编号: if(mask  ASITE) { printf( ); scanf(%s, s-site); }  if(mask  ASITE) { printf( ); scanf(%s, s-site); }  请输入教室位置: 请输入教室位置: if(mask  ASNUM) { printf( ); scanf(%s, s-snum); }  if(mask  ASNUM) { printf( ); scanf(%s, s-snum); }  请输入座位数: 请输入座位数: if
显示全部
相似文档