I got this struct:
 struct human{
 int ma;
 double su;
 string nev;
};
And this part in main() :
    vector<human> t;
    fstream inf("in.txt");
I want read in the information from file by using this :
while(!inf.eof())
   {
       t.push_back(??????);
   }
With t.push_back(??????);
I want to put the stuff from file in to my vector struct
 int ma;
 double su;
 string nev;
The number off elements in file are unknown.
So the big question is how to fill up my struct by usingpush_back();?
Sorry for noob question :)
Content looks like this :(in.txt)
123
34.34
Dani
180
70.1
Victor
190
90
julika
200
45
rozika
 
    