Untitled
raw download clone
TEXT
views 13
,
size 289 b
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
    char s[71], *p;
    int k=0;
    cin.get(s,256);
    p=strtok(s," ");
    while ( p!=NULL)
    {
        if(strchr(p,'a')!=NULL)
            k++;
        p=strtok(NULL," ");
    }
    cout<<k;

}
close fullscreen
Login or Register to edit or fork this paste. It's free.