编写程序,计算在用户输入的字符串中,英文字母的个数。注意:编程过程中对于程序给定的部分不允许修改,考试仅允许在/** code **/提示行区间内作答。
#include <iostream>
using namespace std;
int num(char *str)
{
/******************code***********************/
/****************code**************************/
}
int main()
{
char str[1000];
cin.getline(str,1000);
cout<<num(str)<<endl;
return 0;
}
无
abc123ABC#
6