Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can u fix the problem please it it not working Paused HW 4 main HW 4 ? HW 4 ? main No Selection include ciostreans

can u fix the problem please it it not working
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Paused HW 4 main HW 4 ? HW 4 ? main No Selection "include ciostreans \#include using namespace std; void marketdatabase(vector\& qrcodes, vector\& items, vector\& prices) 1 string line; cout "Enter product QR, name, and price (enter "END', to finish):" == MEND") f break; \} size_t qrPos = line, find (', ' ); size_t namePos =1 ine, find (,, qrPos +1); size_t pricepos = line.rfind ('s'); string qrCode = line.substr( , qrPos ); string itemName =1 ine,subst( qrPos +1 , namaPos - qrPos -1); double itemPrice = stod (1ine -substr(pricePos)); qreodes .push_back(qrCode); items , push_back (itemName); prices.push back (itemprice); \} ) Int findopicodeindex(const vector 8 qcodes, const string\& qrcode) 1 for (size_t i=0;i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago