学生搭配问源程序代码.docVIP

  • 6
  • 0
  • 约9.7千字
  • 约 11页
  • 2016-12-02 发布于贵州
  • 举报
学生搭配问源程序代码

#includestdio.h #include time.h #include stdlib.h #include string.h #define MAX 200 #define MAXNAME 20 typedef struct LNode { int num;//编号 char name[MAXNAME]; char sex; //性别,F表示女性,M表示男性 struct LNode *next; }LNode, *LinkList; void sleep( clock_t wait ) //延迟函数 { clock_t goal; goal = wait + clock(); while( goal clock() ) ; } void CreateList_L(LinkList L1,LinkList L2,int m,int n) { printf(\n\n\t\t\t\t^o^参加舞会学生名单^o^\n); printf(\n\n\t\t请输入女生数量:); scanf(%d,m); while(m1) { printf(\n\n\t\t\t\tERROR\n\n\t\t\t请重新输入女生数量); sleep(1000);//void sleep( clock_t wait )

文档评论(0)

1亿VIP精品文档

相关文档