P1130,朴实无华解法
摘要:解题思路:用字符数组表示字符串,输入字符串后,遍历字符数组,比较字符大小,另定义sum用来统计个数注意事项:非万能头选手记得加上STRLEN所在头文件<string>参考代码:#include<bit……
C语言训练-数字母(定义函数的做法,心动不如行动!!!)
摘要:解题思路:记录所有字母出现的次数并输出注意事项:注意字母大小写的区分参考代码:#include<stdio.h>#include<string.h>void mn(char *a){ int i,le……
C语言训练-数字母(简单数组)
摘要: #include
#include
void deal(char str[999]);
int main() {
char s……
1130: C语言训练-数字母
摘要:```cpp
#include
#include
using namespace std;
int main()
{
short s=0;
char ch[100];
……
C语言训练-数字母(简单C++)
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
char s[88];
int i=0……
C语言训练-数字母-简单方法
摘要:解题思路:通过判断(a[i]>='A'&&a[i]<='Z') || (a[i]>='a'&&a[i]<='z'),a[i]在范围内,……