I do not understand what to add to the arguments, the constructor in the method to call or return as a constructor. In general, the point is that I saved the product a (protein, carbohydrates, fat) and the output from the file should create an object product with the same data. I started doing this: but I understand that some kind of nonsense
friend std::ifstream& operator>>(std::ifstream& fin, product p1 ) { fin >> p1.Name; fin >> p1.Belok; fin >> p1.Gur; fin >> p1.Yglevod; (fin >> p1.Kkal).get(); return fin; }