Question: can you fix my code void marketdatabase (vectorf string arcode; int gnount; double price; string itemname; cout Enter product QR, name, and price (enter 'END'









void marketdatabase (vectorf string arcode; int gnount; double price; string itemname; cout "Enter product QR, name, and price (enter 'END' to finish): " ; string line; while (true) \& getline(cin, line); if (line = "END") break; itemname =1 ine. substx (1ine.find(' ') +1,1 ine.find('\$') -1 ine.find(' ') - 1); price =stod(1 ine.substr (1 ine.find ( 's' )+1)); qreodes,push_back(qrcode); itens .push_back (itemname); prices.push back(price); ) int finderCodoIndex(const vectorf for (size ti=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
