Kod: Zaznacz cały
#include <iostream>
#include <fstream>
using namespace std;
int main()
{ int n=0;
char zn;
ifstream tekst("tekst.txt");
while (! tekst.eof())
{ tekst.get(zn);
if (isalnum(zn)) n=n+1; }
tekst.close();
cout<<"ilosc znakow: "<<n;
return 0;