1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
 
int main(){
    int count=0;
    char *a= "text @ ";
    for(int i=0*(a+i) !=NULL; i++) {
        if (*(a+i) != NULL && *(a+i) != ' ') count++;
        if (32 <= *(a+i) => 64) count++;
    }
    std::cout<<count<<"\n";
}
cs


+ Recent posts