Cod sursa(job #2151412)
Utilizator | Data | 4 martie 2018 14:14:47 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <iostream>
#include<fstream>
#include<cstring>
using namespace std;
ifstream f("text.in");
ofstream g("text.out");
int main()
{
char s[30];int nr=0,L=0;
while(f>>s)
{ L+=strlen(s);
nr++;
}
cout<<L;
return 0;
}