编译没错~~但不能执行呀~
用的是VC++6.0的版本
用的是VC++6.0的版本

藏锋守拙磨利剑,一心学好C语言
2006-11-09 16:07
#include <stdio.h>
#include <stdlib.h>
int main()
{
char str[1000];
int i = 0;
gets(str);
while(str[i] != '\n')
{
if(str[i] == 'r' || str[i] == 'R')
break;
i ++;
}
i ++;
printf("%d\n", i);
return 0;
}

2006-11-09 16:38
2006-11-09 16:43