#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream a;
ifstream b;
a.open("text.txt");
a.close();
b.open("text.txt");
if(b.fail())
cout<<"chyba";
b.seekg(0,b.end);
int dlzka=b.tellg();
b.seekg(0,b.beg);
char* pamet=new char[dlzka];
b.read(pamet,dlzka);
b.close();
int dlzkaa[20];
for(int i=0;i<20;i++)
dlzkaa[i]=0;
for(int i=0;i<dlzka;i++)
{
if(pamet[i]=!' ')
{
dlzkaa[i]++;
}
}
toto uz mam napisane a neviem ako dalej pomozes mi pls