Cod sursa(job #277679)
Utilizator | Data | 11 martie 2009 20:49:52 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.28 kb |
#include<fstream.h>
#include<string.h>
#include<math.h>
ifstream f("strmatch.in");
ofstream g("strmatch.out");
int main ()
{
char a[250],b[250],*p;
long k=0;
cin.get(a,250);
cin.get(b,250);
p=strtok(b,a);
while (p)
{
k++;
p=strtok(NULL,a);
}
g<<k;
}