Ok so i made a program that asks for a number of products you want to sell and it asks for a price but i dont think im assigning the price to the vector elements, how do i do that? so lets say product 1 is an zbox, and i set the price to $400, later in my program when i buy an xbox i want the program to know to subtract $400.
Because there 2 different vectors how does it know to assign the int vector to the string vector? this is what i have so far and its not working. It compiles but doesnt subtract the amount i entered for the item i want.
Oh! Sorry, my bad. I misunderstood what you meant.
If I understand what your code is really meant to be doing, what you're doing up to line 49 is correct (or, at least, can be made to work depending on what you write next). Take a good, hard look at that loop and see if you can find what's wrong