您好,欢迎光临本网站![请登录][注册会员]  
文件名称: 查询类代码
  所属分类: C/C++
  开发工具:
  文件大小: 3kb
  下载次数: 0
  上传时间: 2013-05-09
  提 供 者: u0102*****
 详细说明: #include"stdio.h" #include"stdlib.h" #define YEAR 23 typedef struct{ int year; char name[24]; char team[30]; char finishschool[50]; }PLAYERINF; extern void display(PLAYERINF s[],int n), search(PLAYERINF s[]); void main() { PLAYERINF s[YEAR]={{1990,"柯曼","网队","syracuse"},{1991,"约翰逊","黄蜂","Nevada-las Vegas"}, {1992,"奥尼尔","魔术","Louisiana State"},{1993,"韦伯","魔术","Michigan"},{1994,"罗宾逊 ","雄鹿","Purdue"}, {1995,"史密斯","勇士","Maryland"},{1996,"艾弗森","76人","Georgetown"},{1997,"邓肯","马刺","Wake Forest"}, {1998,"欧罗伍坎迪","快艇","Brunel"},{1999,"布兰德","公牛","Duke"},{2000,"马丁","网队","Cincinnati"}, {2001,"夸梅-布朗","奇才","Glynn Academy"},{2002,"姚明","火箭","Shanghai"},{2003,"勒布朗-詹姆斯","骑士","St.Mary's HS"}, {2004,"德怀特-霍华德","魔术","Christian Academy"},{2005,"安德鲁-博格特","猛龙","Utah"},{2006,"安德烈-巴格纳尼","欧洲","不详"}, {2007,"格雷格-奥登","开拓者","Ohio State"},{2008,"德里克-罗斯","公牛","Memphis"},{2009,"格里芬","快船","Oklahoma"}, {2010,"约翰-沃尔","奇才","Country"},{2011,"凯瑞-欧文","骑士","Dunk Country"},{2012,"安东尼","黄蜂","肯塔基大学"}}; int ch; printf("\t\t\t\t功能菜单\n"); printf("===========================================================================\n"); printf("1.显示历届状元秀名单\n"); printf("2.按年份查找状元秀信息\n"); printf("0.退出\n"); scanf("%d",&ch); while(ch!=0) { switch(ch) { case 1: display(s,YEAR);break; case 2: search(s);break; default: printf("您输入错误,请重新输入!\n");break; } system("pause"); system("cls"); printf("功能菜单\n"); printf("================================================================================\n"); printf("1.显示历届状元秀名单\n"); printf("2.按年份查找状元秀信息\n"); printf("0.退出\n"); scanf("%d",&ch); } } void search(PLAYREINF s[]) { int k,number=0; PLAYREINT s1[1]; printf("请输入年份:\n"); scanf("%d",&number); for(k=0;kYEAR) printf("您输入的年份有误,请重新输入一个在1990到2012之间的年份"); void display(PLAYERINF s[],int n) { int k; printf("=======================================历届状元秀名单=====================================\n"); printf("年份 姓名 所在球队 毕业学校\n"); printf("-------------------------------------------------------------------------------------------\n"); for(k=0;k
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: 信息查询
 输入关键字,在本站1000多万海量源码库中尽情搜索: