1012: [编程入门]字符串分类统计
摘要:import java.io.*;
public class Main {
public static BufferedReader in = new BufferedReader(n……
if~else if处理和正则表达式处理
摘要:解题思路:首先可以想到将字符串转化为字符数组,再用if~else if判断统计。再次思考可以想到能用正则表达式来匹配字符串中的字符类型。注意事项:字符串类型输入需要使用nextLine(),因为输入字……
1012: [编程入门]字符串分类统计
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<string.h>
int main(){
char str[200];
int i;
……
1012题解解题思路:利用 if 句型,进行筛选。建一个变量做计算器,最后回车的时候做把统计的打出来(英文字母 数字 空格 其他符号) 注意事项:变量类型为 char !!! 在 for 循环进入
摘要:
参考代码:
#include
int main (void){
int a=0;//控制for循环的
int e=0;//英语字母
int n=0;//数字
……
[编程入门]字符串分类统计
摘要:##[编程入门]字符串分类统计
```c
#include
#include
int main()
{
char s[201];
int i,c1=0,c2=0,c3=0,c4=0;……
刷题记录(头秃第n天)
摘要:解题思路:gets puts函数的使用 解决scanf不能输入空格问题注意事项:参考代码:#include<string.h>#include<stdio.h>#include<stdlib.h>……
编写题解 1012: [编程入门]字符串分类统计
摘要:解题思路:注意事项:参考代码:a=[]
b=[]
c=[]
d=[]
s=input('')
for i in s:
if (i >='a' and……
[编程入门]字符串分类统计
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char c;int q=0,w=0,e=0,r=0;while((c=getchar())!='\n&#……