Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Product parsing_text(string& line)
- {//Parsing text from file and building object type Product
- //nazwy zmiennych
- stringstream sstream;
- string type, name, quantity;
- double cost = 0;
- size_t code = 0;
- sstream >> type >> name >> quantity >> cost >> code;
- Product::type t = check_product_type(type);
- quantity = check_product_quantity(quantity);
- return Product(t, name, quantity, cost, code);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement