Home > Back-end >  Statistical characters of the c
Statistical characters of the c

Time:09-27

How many times what statistical input characters
 
#include
#include
#include
using namespace std;
Void fun () {
Char a, [100].
Cin. Getline (a, 100);
Int ji=0, ji1=0;
For (int I=97; i<123; I++) {
Ji=0;
For (int j=0; jChar z=a, [j].
Int shu=z;
If (shu> 122 | | shu<97) {
Ji1=1;
{} else if (I==shu)
Ji++;
}
}
Char f=I;
If (ji!=0) {
cout}
}
cout<" Ta "& lt; }

26 characters statistics no problem, but is there is a problem, in addition to 26 characters accident number is wrong,
  • Related