Cod sursa(job #42804)
Utilizator | Data | 29 martie 2007 15:34:40 | |
---|---|---|---|
Problema | Patrate 3 | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.38 kb |
#include <iostream.h>
#include <string.h>
void main()
{char sep[]="' '";
char a[100],*p,b[10];
int i,nrc,l;
cin.get(a,100);
p=strtok(a,sep);
while (p)
{nrc=0;
strcpy(b,p);
l=strlen(b);
for (i=0;i<l;i++)
if (b[i]!='a'||b[i]!='e'||b[i]!='i'||b[i]!='o'||b[i]!='u') nrc++;
if (nrc==1)
cout<<b<<endl;
p=strtok(NULL,sep);
}
}