Cod sursa(job #24750)
Utilizator | Data | 3 martie 2007 15:36:03 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include<fstream.h>
#include<string.h>
ifstream in("text.in");
ofstream out("text.out");
int main()
{
char ch;
int k=-1,l=0,i;
while(in.good())
{
i=strlen("text.out");
in>>ch;
if(ch<='z' && ch>='a')
k++;
else
l++;
}
out<<k<<" "<<l;
return 0;
}