服务器之家:专注于服务器技术及软件下载分享
分类导航

PHP教程|ASP.NET教程|Java教程|ASP教程|编程技术|正则表达式|C/C++|IOS|C#|Swift|Android|VB|R语言|JavaScript|易语言|vb.net|

服务器之家 - 编程语言 - C/C++ - C语言课程设计之抽奖系统

C语言课程设计之抽奖系统

2021-08-11 15:49贺志营 C/C++

这篇文章主要为大家详细介绍了C语言课程设计之抽奖系统,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

本文实例为大家分享了C语言课程设计之抽奖系统的具体代码,供大家参考,具体内容如下

该程序的功能包括:

1、设置中奖人员
2、设置内幕人员
3、添加功能
4、删除功能
5、颜色设置
6、开发人员介绍

在使用该系统之前,请先在你程序保存的位置建一个17计科2.txt文档,里面填上学号和姓名,例如:25 贺志营。

C语言课程设计之抽奖系统

建好txt文档后就可以直接运行了

运行截图及代码如下:

主界面:

C语言课程设计之抽奖系统

功能介绍界面:

C语言课程设计之抽奖系统

设置奖项界面:

C语言课程设计之抽奖系统

开始抽奖界面不好演示,它是个动态的,下面有代码,可以自己运行下

程序代码:

  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<stdlib.h>
  4. #include<conio.h>
  5. #include<time.h>
  6. #include <windows.h>
  7. //#pragma comment(lib, "winmm.lib")
  8.  
  9. struct data{
  10. char id[20];
  11. char name[20];
  12. };
  13.  
  14. struct data information[110];//普通人员信息
  15. struct data information0[110];//滚动人员信息
  16. struct data prize[110];//总获奖人员信息
  17. struct data winner1[110],winner2[110],winner3[110];//内幕人员信息
  18.  
  19. int grade1=0,grade2=0,grade3=0;//内幕一等奖、二等奖、三等奖的人数
  20. int ms=60;//初始滚动时间间隔
  21. int count=0;//滚动人员总数
  22. int people=0;//普通人员总数
  23. int people1=0,people2=0,people3=0;//普通一等奖、二等奖、三等奖的人数
  24. char strid[20];
  25.  
  26. void Function_introduction();//功能介绍
  27. void Print_menu();//打印菜单
  28. void Set_award();//设置奖项
  29. void Read_information();//从文件中读取信息,放到普通人员信息中
  30. void Read_information0();//从文件中读取信息,放到滚动人员信息中
  31. void Roll_information0();//滚动信息,该信息是滚动人员的信息
  32.  
  33. void Set_speed();//设置滚动时间间隔
  34. void Set_colour();//颜色设置
  35. void Set_grade();//设置必中奖等级
  36. void Set_winner1();//设置一等奖信息
  37. void Set_winner2();//设置二等奖信息
  38. void Set_winner3();//设置三等奖信息
  39. void Set_awards();//设置奖项人数
  40.  
  41. void Delet_function();//删除功能
  42. void Delet_number();//按学号删除
  43. void Delet_name();//按姓名删除
  44. void Delet_information();//删除普通人员的信息
  45. void Delet_information0();//删除内幕人员信息
  46. void Add_function();//添加功能
  47. void Begin_luck();//开始抽奖
  48. void Roll_speed(int ms);//滚动速度
  49. void Developer();//开发人员介绍
  50.  
  51. int main()
  52. {
  53.  
  54. Read_information();
  55. Read_information0();
  56. system("color 07");
  57. Print_menu();
  58.  
  59. return 0;
  60. }
  61.  
  62. void Function_introduction()//功能介绍
  63. {
  64. system("cls");
  65. printf("\n\t\t <-抽奖系统功能介绍->\n\n");
  66. printf("\t\t\t1、设置中奖人员\n");
  67. printf("\t\t\t2、设置内幕人员\n");
  68. printf("\t\t\t3、添加功能\n");
  69. printf("\t\t\t4、删除功能\n");
  70. printf("\t\t\t5、颜色设置\n");
  71. printf("\t\t\t6、开发人员介绍\n");
  72. printf("\t\t\t按任意键返回");
  73. getch();
  74.  
  75. }
  76.  
  77. void Print_menu()//打印菜单
  78. {
  79. int choose;
  80. while(1)
  81. {
  82. system("cls");
  83. printf("\n\n");
  84. printf("\t*********************************************************\n");
  85.  
  86. printf("\t*\t <-欢迎来到抽奖系统->\t\t\t*\n");
  87. printf("\t*\t\t\t\t\t\t\t*\n");
  88.  
  89. printf("\t*\t\t开始抽奖请按1\t\t\t\t*\n");
  90. printf("\t*\t\t设置奖项请按2\t\t\t\t*\n");
  91. printf("\t*\t\t滚动设置请按3\t\t\t\t*\n");
  92. printf("\t*\t\t颜色设置请按4\t\t\t\t*\n");
  93. printf("\t*\t\t添加功能请按5\t\t\t\t*\n");
  94. printf("\t*\t\t删除功能请按6\t\t\t\t*\n");
  95. printf("\t*\t\t人员介绍请按7\t\t\t\t*\n");
  96. printf("\t*\t\t功能介绍请按8\t\t\t\t*\n");
  97. printf("\t*\t\t结束程序请按0\t\t\t\t*\n");
  98. printf("\t*\t\t\t\t\t\t\t*\n");
  99. printf("\t*********************************************************\n");
  100.  
  101. printf("\n\n\t\t\t请输入选项:");
  102. scanf("%d",&choose);
  103.  
  104. switch(choose)
  105. {
  106. case 0:
  107. return;
  108. case 1:
  109. Begin_luck();//开始抽奖
  110. break;
  111. case 2:
  112. Set_award();//设置奖项
  113. break;
  114. case 3:
  115. Set_speed();//设置滚动时间间隔
  116. break;
  117. case 4:
  118. Set_colour();//颜色设置
  119. break;
  120. case 5:
  121. Add_function();//添加功能
  122. break;
  123. case 6:
  124. Delet_function();//删除功能
  125. break;
  126. case 7:
  127. Developer();//开发人员介绍
  128. break;
  129. case 8:
  130. Function_introduction();//功能介绍
  131. break;
  132. }
  133. }
  134. }
  135.  
  136. void Set_award()//设置奖项
  137. {
  138. int choose;
  139. while(1)
  140. {
  141. system("cls");
  142. printf("\n\n");
  143. printf("\t*********************************************************\n");
  144. printf("\t*\t\t\t\t\t\t\t*\n");
  145. printf("\t*\t\t设置奖项人数请按1\t\t\t*\n");
  146. printf("\t*\t\t设置内幕人员请按2\t\t\t*\n");
  147. printf("\t*\t\t返回上一层请按0\t\t\t\t*\n");
  148. printf("\t*\t\t\t\t\t\t\t*\n");
  149. printf("\t*********************************************************\n");
  150.  
  151. printf("\n\n\t\t\t请输入选项:");
  152. scanf("%d",&choose);
  153. switch(choose)
  154. {
  155. case 0:
  156. return;
  157. case 1:
  158. Set_awards();//设置奖项人数
  159.  
  160. break;
  161. case 2:
  162. Set_grade();//设置内幕人员
  163. break;
  164. }
  165. }
  166. }
  167.  
  168. void Set_colour()//颜色设置
  169. {
  170. char choose[20];
  171. int i;
  172. system("cls");
  173. printf("\n\n\t0 = 黑色 8 = 灰色\n");
  174. printf("\t1 = 蓝色 9 = 淡蓝色\n");
  175. printf("\t2 = 绿色 A = 淡绿色\n");
  176. printf("\t3 = 浅绿色 B = 淡浅绿色\n");
  177. printf("\t4 = 红色 C = 淡红色\n");
  178. printf("\t5 = 紫色 D = 淡紫色\n");
  179. printf("\t6 = 黄色 E = 淡黄色\n");
  180. printf("\t7 = 白色 F = 亮白色\n\n");
  181. printf("\t请输入字体颜色对应的代码:");
  182. scanf("%s",choose);
  183. if(strcmp(choose,"0")==0)
  184. system("color 00");
  185. else if(strcmp(choose,"1")==0)
  186. system("color 01");
  187. else if(strcmp(choose,"2")==0)
  188. system("color 02");
  189. else if(strcmp(choose,"3")==0)
  190. system("color 03");
  191. else if(strcmp(choose,"4")==0)
  192. system("color 04");
  193. else if(strcmp(choose,"5")==0)
  194. system("color 05");
  195. else if(strcmp(choose,"6")==0)
  196. system("color 06");
  197. else if(strcmp(choose,"7")==0)
  198. system("color 07");
  199. else if(strcmp(choose,"8")==0)
  200. system("color 08");
  201. else if(strcmp(choose,"9")==0)
  202. system("color 09");
  203. else if(strcmp(choose,"A")==0)
  204. system("color 0A");
  205. else if(strcmp(choose,"B")==0)
  206. system("color 0B");
  207. else if(strcmp(choose,"C")==0)
  208. system("color 0C");
  209. else if(strcmp(choose,"D")==0)
  210. system("color 0D");
  211. else if(strcmp(choose,"E")==0)
  212. system("color 0E");
  213. else if(strcmp(choose,"F")==0)
  214. system("color 0F");
  215. else
  216. {
  217. printf("输入错误按任意键返回上一层\n");
  218. getch();
  219. return;
  220. }
  221. printf("\t设置完毕按任意键返回");
  222. getch();
  223.  
  224. }
  225.  
  226. void Delet_function()//删除功能
  227. {
  228. int choose;
  229. while(1)
  230. {
  231. system("cls");
  232. printf("\n\n");
  233. printf("\t*********************************************************\n");
  234. printf("\t*\t\t\t\t\t\t\t*\n");
  235. printf("\t*\t\t按姓名删除请按1\t\t\t\t*\n");
  236. printf("\t*\t\t按学号删除请按2\t\t\t\t*\n");
  237. printf("\t*\t\t返回上一层请按0\t\t\t\t*\n");
  238. printf("\t*\t\t\t\t\t\t\t*\n");
  239. printf("\t*********************************************************\n");
  240.  
  241. printf("\n\n\t\t\t请输入选项:");
  242. scanf("%d",&choose);
  243. switch(choose)
  244. {
  245. case 0:
  246. return;
  247. case 1:
  248. Delet_name();//按姓名删除
  249. break;
  250. case 2:
  251. Delet_number();//按学号删除
  252. break;
  253. }
  254. }
  255. }
  256.  
  257. void Read_information()//从文件中读取信息
  258. {
  259. FILE *fp=fopen("17计科2.txt","r");
  260. while(!feof(fp))
  261. {
  262. //存储该信息到普通人员信息中,便于设置内幕人员
  263. fscanf(fp,"%s%s",information[people].id,information[people].name);
  264. people++;
  265. }
  266. fclose(fp);
  267. }
  268.  
  269. void Read_information0()//读取滚动人员的信息
  270. {
  271. FILE *fp=fopen("17计科2.txt","r");
  272. while(!feof(fp))
  273. {
  274. //存储信息到滚动人员信息中,用于滚动时打印在显示屏幕中
  275. fscanf(fp,"%s%s",information0[count].id,information0[count].name);
  276. count++;
  277. }
  278. fclose(fp);
  279. }
  280.  
  281. void Roll_information0()//滚动信息,该信息是滚动人员的信息
  282. {
  283. int i=0;
  284. system("cls");
  285. printf("按任意键开始抽奖,按任意键停止抽奖\n");
  286. getch();
  287. // PlaySound (TEXT("C:中国人民解放军军乐团-国际歌.wav"), NULL, SND_ASYNC | SND_NODEFAULT);
  288. while(1)
  289. {
  290. system("cls");
  291. if(kbhit()!=0)
  292. break;
  293. i=rand()%count;
  294. printf("%s",information0[i].name);//显示滚动信息
  295. //i++;
  296. //if(i==count)
  297. //i=0;
  298. Roll_speed(ms);
  299. }
  300. // PlaySound (0, NULL, SND_ASYNC | SND_NODEFAULT);
  301. }
  302.  
  303. void Begin_luck()//开始抽奖
  304. {
  305. int i,j,choose,t;
  306. system("cls");
  307. if(grade3==0&&grade2==0&&grade3==0&&people1==0&&people2==0&&people3==0)
  308. {
  309.  
  310. printf("请先设置奖项人数按任意键返回\n");
  311. getch();
  312. return;
  313. }
  314. printf("下面开始抽取三等奖人员,按任意键继续\n");
  315. getch();
  316. j=0;//代表各奖项人员的总数包括内幕人员
  317. while(grade3--)//内幕三等奖人员
  318. {
  319. if(grade3<0)
  320. break;
  321. Roll_information0();
  322. printf("%s",winner3[grade3].name);
  323. prize[j++]=winner3[grade3];
  324. strcpy(strid,winner3[grade3].id);
  325. Delet_information0();//删除该成员在滚动信息中的信息
  326. getch();
  327. getch();
  328. }
  329. while(people3--)//普通三等奖人员
  330. {
  331. if(people3<0)
  332. break;
  333. Roll_information0();
  334. srand((unsigned)time(0));
  335. t=rand()%people;
  336. printf("%s",information[t].name);
  337. prize[j++]=information[t];
  338.  
  339. strcpy(strid,information[t].id);
  340. Delet_information();//删除该成员在普通信息中的信息
  341. Delet_information0();//删除该成员在滚动信息中的信息
  342. //printf("\n\n\n");
  343. //for(i=0;i<count;i++)
  344. //printf("%s ",information0[i].name);
  345. getch();
  346. getch();
  347. }
  348. system("cls");
  349. printf("以下是三等奖名单,按任意键继续\n");
  350. for(i=0;i<j;i++)
  351. printf("%s\n",prize[i].name);
  352. getch();
  353.  
  354. system("cls");
  355. printf("下面开始抽取二等奖人员,按任意键继续\n");
  356. getch();
  357. j=0;
  358. while(grade2--)
  359. {
  360. if(grade2<0)
  361. break;
  362. Roll_information0();//显示滚动人员信息
  363. printf("%s",winner2[grade2].name);
  364. prize[j++]=winner2[grade2];
  365. strcpy(strid,winner2[grade2].id);
  366. Delet_information0();//删除该成员在滚动信息中的信息
  367. getch();
  368. getch();
  369. }
  370.  
  371. while(people2--)
  372. {
  373. if(people2<0)
  374. break;
  375. Roll_information0();
  376. srand((unsigned)time(0));
  377. t=rand()%people;
  378. printf("%s",information[t].name);
  379. prize[j++]=information[t];
  380. strcpy(strid,information[t].id);
  381. Delet_information();//删除该成员在普通信息中的信息
  382. Delet_information0();//删除该成员在滚动信息中的信息
  383. getch();
  384. getch();
  385. }
  386. system("cls");
  387. printf("以下是二等奖名单,按任意键继续\n");
  388. for(i=0;i<j;i++)
  389. printf("%s\n",prize[i].name);
  390. getch();
  391.  
  392. system("cls");
  393. printf("下面开始抽取一等奖人员,按任意键继续\n");
  394. getch();
  395. j=0;
  396. while(grade1--)//内幕一等奖人员
  397. {
  398. if(grade1<0)
  399. break;
  400. Roll_information0();
  401. printf("%s",winner1[grade1].name);
  402. prize[j++]=winner1[grade1];
  403. strcpy(strid,winner1[grade1].id);
  404. Delet_information0();//删除该成员在滚动信息中的信息
  405. getch();
  406. getch();
  407. }
  408. while(people1--)
  409. {
  410. if(people1<0)
  411. break;
  412. Roll_information0();
  413. srand((unsigned)time(0));
  414. t=rand()%people;
  415. printf("%s",information[t].name);
  416. prize[j++]=information[t];
  417.  
  418. strcpy(strid,information[t].id);
  419. Delet_information();//删除该成员在普通信息中的信息
  420. Delet_information0();//删除该成员在滚动信息中的信息
  421. getch();
  422. getch();
  423. }
  424. system("cls");
  425. printf("以下是一等奖名单,按任意键继续\n");
  426. for(i=0;i<j;i++)
  427. printf("%s\n",prize[i].name);
  428.  
  429. printf("抽奖完毕按任意键返回\n");
  430. getch();
  431. }
  432.  
  433. void Set_speed()//滚动速度
  434. {
  435. char choose[20];
  436. int i,t=0;
  437. system("cls");
  438. printf("请输入滚动时间间隔\n");
  439. scanf("%s",choose);
  440. for(i=0;choose[i]!='\0';i++)
  441. if(choose[i]<'0'||choose[i]>'9')
  442. {
  443. printf("输入有误按任意键返回");
  444. getch();
  445. return;
  446. }
  447. else
  448. t=10*t+choose[i]-'0';
  449. ms=t;
  450. printf("设置完毕按任意键返回\n");
  451. getch();
  452. }
  453.  
  454. void Roll_speed(int ms)
  455. {
  456. clock_t t1,t2;
  457. t1=clock();
  458. while(1)
  459. {
  460. t2=clock();
  461. if(t2-t1>=ms)
  462. return;
  463. }
  464. }
  465.  
  466. void Set_awards()//设置奖项人数
  467. {
  468. int choose,t;
  469. while(1)
  470. {
  471. system("cls");
  472. printf("请输入三等奖人数(正整数):\n");
  473. scanf("%d",&t);
  474. if(t<0||t>count)
  475. {
  476. printf("输入不合法,请输入1到%d之内的数字",count);
  477. getch();
  478. }
  479. else
  480. {
  481. people3+=t;
  482. break;
  483. }
  484.  
  485. }
  486. while(1)
  487. {
  488. system("cls");
  489. printf("请输入二等奖人数:\n");
  490. scanf("%d",&t);
  491. if(t<1||t>count)
  492. {
  493. printf("输入不合法,请输入1到%d之内的数字",count);
  494. getch();
  495.  
  496. }
  497. else
  498. {
  499. people2+=t;
  500. break;
  501. }
  502.  
  503. }
  504. while(1)
  505. {
  506. system("cls");
  507. printf("请输入一等奖人数:\n");
  508. scanf("%d",&t);
  509. if(t<0||t>count)
  510. {
  511. printf("输入不合法,请输入1到%d之内的数字",count);
  512. getch();
  513. }
  514. else
  515. {
  516. people1+=t;
  517. break;
  518. }
  519. }
  520. printf("设置完毕按任意键返回\n");
  521. getch();
  522. return;
  523. }
  524.  
  525. void Set_grade()//设置内幕中奖等级
  526. {
  527. char grade[20];
  528. system("cls");
  529. printf("请输入中奖等级,返回上一层请按0\n");
  530. scanf("%s",grade);
  531. if(strcmp(grade,"0")==0)
  532. return;
  533.  
  534. else if(strcmp(grade,"1")==0)
  535. Set_winner1();
  536. else if(strcmp(grade,"2")==0)
  537. Set_winner2();
  538. else if(strcmp(grade,"3")==0)
  539. Set_winner3();
  540. else
  541. {
  542. printf("请输入1到3等级按任意键返回\n");
  543. getch();
  544. return;
  545. }
  546. }
  547.  
  548. void Set_winner1()//设置内幕一等奖信息
  549. {
  550. int i,j;
  551. system("cls");
  552. printf("请输入必中奖人员学号和姓名:\n");
  553. scanf("%s%s",winner1[grade1].id,winner1[grade1].name);
  554. for(i=0;i<count;i++)
  555. if(strcmp(winner1[grade1].id,information0[i].id)==0)
  556. break;
  557. for(j=0;j<count;j++)
  558. if(strcmp(winner1[grade1].name,information0[i].name)==0)
  559. break;
  560. if(i==count||j==count)
  561. {
  562. printf("抽奖名单中无此信息按任意键返回");
  563. getch();
  564. return;
  565.  
  566. }
  567. printf("设置成功按任意键继续");
  568. getch();
  569. strcpy(strid,winner1[grade1].id);
  570. Delet_information();//普通总成员减1
  571. grade1++;//内幕一等奖成员加1
  572. people1--;//普通一等奖成员减1
  573. return;
  574. }
  575.  
  576. void Set_winner2()//设置内幕二等奖信息
  577. {
  578. int i,j;
  579. system("cls");
  580. printf("请输入必中奖人员学号和姓名:\n");
  581. scanf("%s%s",winner2[grade2].id,winner2[grade2].name);
  582. for(i=0;i<count;i++)
  583. if(strcmp(winner2[grade2].id,information0[i].id)==0)
  584. break;
  585. for(j=0;j<count;j++)
  586. if(strcmp(winner2[grade2].name,information0[i].name)==0)
  587. break;
  588. if(i==count||j==count)
  589. {
  590. printf("抽奖名单中无此信息按任意键返回");
  591. getch();
  592. return;
  593. }
  594. printf("设置成功按任意键继续");
  595. getch();
  596. strcpy(strid,winner2[grade2].id);
  597. Delet_information();//普通总人员减1
  598. grade2++;//内幕二等奖人员加1
  599. people2--;//普通二等奖人员减1
  600. return;
  601. }
  602.  
  603. void Set_winner3()//设置内幕三等奖信息
  604. {
  605. int i,j;
  606. system("cls");
  607. printf("请输入必中奖人员学号和姓名:\n");
  608. scanf("%s%s",winner3[grade3].id,winner3[grade3].name);
  609. for(i=0;i<count;i++)
  610. if(strcmp(winner3[grade3].id,information0[i].id)==0)
  611. break;
  612. for(j=0;j<count;j++)
  613. if(strcmp(winner3[grade3].name,information0[i].name)==0)
  614. break;
  615. if(i==count||j==count)
  616. {
  617. printf("抽奖名单中无此信息按任意键返回");
  618. getch();
  619. return;
  620. }
  621. printf("设置成功按任意键继续");
  622. getch();
  623. strcpy(strid,winner3[grade3].id);
  624. Delet_information();//普通总人员减1
  625. grade3++;//内幕三等奖人员加1
  626. people3--;//普通三等奖人员减1
  627. return;
  628. }
  629.  
  630. void Delet_number()//按学号删除
  631. {
  632. int i;
  633. system("cls");
  634. while(1)
  635. {
  636.  
  637. printf("请输入要删除人的学号\n");
  638. scanf("%s",strid);
  639. for(i=0;i<count;i++)
  640. if(strcmp(strid,information[i].id)==0)
  641. break;
  642. if(i==count)
  643. {
  644. printf("未找到该学号,请重新输入\n");
  645. getch();
  646. return;
  647. }
  648. else
  649. break;
  650. }
  651. Delet_information();
  652. Delet_information0();
  653. printf("删除成功按任意键返回上一层\n");
  654. getch();
  655. }
  656.  
  657. void Delet_name()//按姓名删除
  658. {
  659. int i;
  660.  
  661. while(1)
  662. {
  663. system("cls");
  664. printf("请输入要删除人的姓名\n");
  665. scanf("%s",&strid);
  666. for(i=0;i<count;i++)
  667. if(strcmp(strid,information0[i].name)==0)
  668. {
  669. strcpy(strid,information0[i].id);
  670. break;
  671. }
  672. if(i==count)
  673. {
  674. printf("未找到该人员按任意键返回上一层\n");
  675. getch();
  676. return;
  677. }
  678. else
  679. break;
  680. }
  681.  
  682. Delet_information();
  683. Delet_information0();
  684. printf("删除成功按任意键返回上一层\n");
  685. getch();
  686. }
  687.  
  688. void Delet_information()//删除该学号人员在普通人员中的信息
  689. {
  690. int i,j;
  691. for(i=0;i<people;i++)
  692. if(strcmp(information[i].id,strid)==0)
  693. {
  694. people--;
  695. for(j=i;j<people;j++)
  696. information[j]=information[j+1];
  697. return;
  698. }
  699. }
  700.  
  701. void Delet_information0()//删除该成员在滚动信息中的信息
  702. {
  703. int i,j;
  704. //printf("\n\n*********%s\n\n",strid);
  705. for(i=0;i<count;i++)
  706. if(strcmp(information0[i].id,strid)==0)
  707. {
  708. count--;
  709. //printf("\n\n*********%s\n\n",information0[i].name);
  710. for(j=i;j<count;j++)
  711. information0[j]=information0[j+1];
  712. return;
  713. }
  714. }
  715. void Add_function()//添加功能
  716. {
  717. int i;
  718. system("cls");
  719. char id[20],name[20];
  720. printf("请输入添加人员的学号和姓名\n");
  721. scanf("%s%s",&id,&name);
  722. for(i=0;i<count;i++)
  723. if(strcmp(information0[i].id,id)==0)
  724. {
  725. printf("该学号已存在按任意键返回");
  726. getch();
  727. return;
  728. }
  729. for(i=0;i<count;i++)
  730. if(strcmp(information0[i].name,name)==0)
  731. {
  732. printf("该姓名已存在按任意键返回");
  733. getch();
  734. return;
  735. }
  736. strcpy(information0[count].id,id);
  737. strcpy(information0[count].name,name);
  738. information[people]=information0[count];
  739. count++;
  740. people++;
  741. printf("添加成功,按任意键返回");
  742. getch();
  743. }
  744.  
  745. void Developer()
  746. {
  747.  
  748. system("cls");
  749. printf("\n\n\t\t\t组长:贺志营");
  750. printf("\n\n\t\t\t组员:刘欣鹏");
  751. printf("\n\n\t\t\t组员:卢开伟");
  752. printf("\n\n\t\t 按任意键返回上一层");
  753. getch();
  754.  
  755. }

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持我们。

原文链接:https://blog.csdn.net/HeZhiYing_/article/details/88087365

延伸 · 阅读

精彩推荐