I'm new to c++ programming and i tried to use struct arrays ( dunno if I say it in the way you understand ). Program does read the variables from the text file but it reads it for 2 times, prob It's not a huge problem as the variables are not changed but just in case
struct menesine_temperatura
{
    int diena[10];
    int rytas[10];
    int pietus[10];
    int vakaras[10];
};
int main()
{
    menesine_temperatura mt;
    int n;
    ifstream failas("duomenys.txt");
    while(!failas.eof())
    {
        failas >> n;
        cout << n << endl;
        for(int i = 0; i < n; i++)
        {
            failas >> mt.diena[i] >> mt.rytas[i] >> mt.pietus[i] >> mt.vakaras[i];
            cout << mt.diena[i] << mt.rytas[i] << mt.pietus[i] << mt.vakaras[i] << endl;
        }
    }
    failas.close();
    return 0;
}
as I have mentioned before I' new to this stuff, so help would be appreciated.
 
    