题库 NOIP CSP-J/S信奥赛&&CCF编程能力认证 题目列表 #include "iostream.h" #define ...
填空题
#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;
 }
输出:_____________


题目信息
普及组 初赛 2006年
-
正确率
0
评论
103
点击