123456
for(vector<float>::size_type j=0;j<3;j++) { myfile >> y; temp(j) << y; cout << temp(j); }
for(vector<float>::size_type j=0;j<3;j++) { myfile >> y; // myfile is an ifstream and y a float? temp[j] = y; // set vector element (temp is a vector of floats?) cout << temp[j]; }