设为首页 加入收藏

TOP

2014年3月全国计算机二级C语言上机模拟试题六十五
2014-11-04 12:30:07 】 浏览:5442
Tags:2014年 3月 全国 计算机 二级 语言 上机 模拟试题 六十五

  注意:源程序存放在考生文件夹下的BLANK1.C中。


  不得增行或删行,也不得更改程序的结构!


  给定源程序:


  #include


  typedef struct


  { char name[10];


  int age;


  }STD;


  STD fun(STD std[], int n)


  { STD max; int i;


  max= ___1___;


  for(i=1; i   if(max.age<___2___) max=std[i];


  return max;


  }


  main( )


  { STD std[5]={"aaa",17,"bbb",16,"ccc",18,"ddd",17,"eee",15 };


  STD max;


  max=fun(std,5);


  printf("\nThe result: \n");


  printf("\nName : %s, Age : %d\n", ___3___,max.age);


  }


  233网校编辑推荐


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇2014年3月全国计算机二级C语言上.. 下一篇2014年3月全国计算机二级C语言上..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目