Cod sursa(job #1766685)
Utilizator | Data | 28 septembrie 2016 13:06:25 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <string.h>
#include <fstream>
#include <iostream>
using namespace std;
ifstream in("text.in");
ofstream out("text.out");
int suma;
char meh;
int main()
{
while(in.get(meh))
{
if((meh >= 'a' && meh <= 'z') || (meh >= 'A' && meh <= 'Z'))
{
++suma;
}
}
out << suma;
}