英语词汇

        abide byconform to , comply with 遵守
  (be) abundant in(be rich in) 富于,富有
  of one’s own accord(willingly)自愿地 ,主动地
  in accordance with (according to) 依照,根据 in terms of 根据
  take…into account(take into consideration)把。.。考虑进去
  on no account(=in no case, for no reason)绝不要
  adapt oneself to(=adjust oneself to) 使自己适应于
  in addition to(=as well as)
  in advance 预告, 事先。考试大论坛
  take advantage of (=make the best of, make use of)利用。
  in the air不肯定,在谣传中。
  appeal to sb. for sth. 为某事向某人呼吁。 appeal to sb. 对某人有吸引力
  approve of赞成 in favour of 赞成
  assure sb. of sth保证, 使确信
  make an attempt at doing sth. (to do sth试图做
  attend to侍候,照料
  attribute…to把。。归因于。. contribute to 有助于 due to 是由于
  at one’s back支持,维护
  on the basis of 根据
  for the benefit of 为了的利益
  get the better of (=defeat sb打败
  in blossom开花
  in bulk 成批地
  center on(=focus on) 把注意力集中在
  by chance(=accidentally, by accident)偶然
  charge sb. with …控告某人犯有
  round the clock(昼夜不停地
  commit oneself to 致力于
  compare…with … 比较 compare…to… 比作
  on condition that (if)如果 in the event that
  confide in 讲真心话,
  be confronted with 面对, 面临
  in connection with有关
  be conscious of(=be aware of)觉察,知道
  consent to同意
  under consideration 在考虑中
  consist of(=be composed of)组成的
  contrary to (opposite to) 相反
  in contrast to/with 形成对比
  by contrast 对比之下 by comparison 比较起来
  at all costs不惜任何代价 。 go to any length想一切办法 by all means不惜一切。
  at the cost of 为代价(at the expense of)
  to one’s credit使某人感到光荣
  be critical of 爱挑毛病的,不满
  out of date过时的;up to date最近的,时兴的; date back to回溯到; date from从某时期开始
  on the decline 在衰退中, 在减少中
  in demand有需求
  deprive sb. of sth. 剥夺某人某物
  deviate from 偏离
  fall back (retreat, turn back) 撤退
  dispose of (get rid of throw away)处理掉
  beyond dispute 无可争议 in dispute 在争议中
  distinguish…from 区别开
  do away with废除,杀掉
  on earth 究竟, 在世上
  at ease自在
  go into effect 生效。 come into effect; take effect 开始生效
  place(or put, lay) an emphasis on 强调
  at one’s wit’s end 智穷计尽
  come to and end (finish) 结束
  enter for 报名参加来源:考试大
  be entitled to有权,有资格
  be equipped with 装备有,装有 

编写一个函数  Unsigned fun(unsigned w).w是一个大于10的无符号整数,若wn(n>=2)位整数,函数求出w的低n-1位的数作为函数值

Unsigned fun(unsigned w)

{

  int temp,t,k=1; 

  if(w>=10)

  {t=strlen(w); 

  for(i=0;i<t;i++)

  k=10*k;

  Temp=w%k;

  Return(temp);

}

给定程序MODI1.C中函数fun的功能是,求出数组中最大数和次大数,并把最大数和a[0]中的数对调,次大数和a[1]中数对调  

include<stdio.h>

define  N   20  

void fun(int*a,int n) 

{int i,m,t,k;

for(i=0;i<2;i++)

{m=i;

for(k=i+1;k<n;k++

if(a[k]>a[m])  k=m;          m=k;

t=a[i];a[i]=a[m];a[m]=t;

}

}  

 void main()

{int b[N]={11,5,12,0,3,6,9,7,10,8},n=10,i;

for (i=0;i<n;i++) printf("%d",b[i]);

printf("\n");

 fun(b,n); 

for(i=0;i<2;i++) printf("%d",b[i]);

printf("\n")

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值