Cod sursa(job #609082)

Utilizator batistaUPB-Oprea-Cosmin-Dumitru batista Data 19 august 2011 15:22:58
Problema Text Scor 70
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.33 kb
#include<fstream>
#include<string>
using namespace std;
char c;
long l,k,lc,i;
int main()
{
	ifstream f("text.in");ofstream g("text.out");
	while(!f.eof())
	{
		f.get(c);
		if(isalpha(c))
		{
		  while(isalpha(c)) 
		   {
			l++;
             f.get(c);			
		   }
		  k++;
	   }
	}
	g<<l/k;
	f.close();g.close();
return 0;}