#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
using namespace std;
struct name_of_struct
{
    string datum;
    int  max;
    double power;
    int min;
};
int main()
{
    vector<name_of_struct> v;
    
// no files on ideone, using string source
//    ifstream f("test.txt");
    istringstream f("26.08.2011;0000123;4.567;0000345;\n"
                 "27.08.2011;0000223;5.567;0000400;");
    
    string line;
    while(getline(f, line))
    {
        istringstream str(line);
        name_of_struct item;
        getline(str, item.datum, ';');
        char c;
        str >> item.max >> c >> item.power >> c >> item.min;
        v.push_back(item);
    }

    for(size_t n = 0; n < v.size(); ++n)
    {
        std::cout << "structure number " << n << ": "
                  << v[n].datum << ", " << v[n].max << ", "
                  << v[n].power << ", " << v[n].min << '\n';
    }
}
