测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A61110. NOIP2006年第十二届普及组初赛阅读程序写结果:#include "iostream.h"

填空题

题目描述

NOIP2006年第十二届普及组初赛阅读程序写结果:

#include "iostream.h" 
#define N  7 
int fun(char s[],char a,int n
 {int j; 
  j=n; 
  while(a<s[j] && j>0) j--; 
  return j; 
 } 
void main() 
 {char s[N+1];
  int k; 
  for(k=1;k<=N;k++) 
    s[k]='A'+2*k+1; 
  cout <<fun(s,'M',N)<<endl; 
 }

输出:_____