Cod sursa(job #93283)
Utilizator | Data | 18 octombrie 2007 11:46:44 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <fstream.h>
ifstream f ("text.in");
ofstream g ("text.out");
char n[1];
long sus,jos;
int main()
{f>>n[0];
while (n[0]!='\n')
{if((n[0]>='a' && n[0]<='z')||(n[0]>='A' && n[0]<='Z')) sus++;
else
if(n[0]==' ') jos++;
}
return 0;
}