Cod sursa(job #139724)
| Utilizator | Data | 20 februarie 2008 15:52:18 | |
|---|---|---|---|
| Problema | Text | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.54 kb |
#include <fstream>
#include<conio.h>
using namespace std;
int main()
{ char s[50];
ifstream f("text.in");
f>>s;
f.close();
int cifre=0,i,n;
int lung=strlen(s);
for(i=0;i<n;i++)
if (s[i]>=48&&s[i]<=57)
cifre++;
if strchr("aeiouAEIOU", s[i]!=NULL);
vocale++;
else (s[i]>=65&&s[i]<=90) (s[i]>=97&&s[i]<=122)
consoane++;
ofstream g("text.out");
g<<cifre;
g.close();
while(!kbhit());
}
