Untitled
raw download clone
TEXT
views 23
,
size 268 b
#include<iostream>
#include<cstring>
using namespace std;
unsigned nr_aparitii(char *sir, char *secventa)
{
    char *aux = strstr(sir , secventa);
    if(aux)
    {

        return 1 + nr_aparitii(aux + strlen(secventa) , secventa );
    }
    return 0;
}
close fullscreen
Login or Register to edit or fork this paste. It's free.