Line 103: You declare order to have 10 elements, but you only initialize 9 prices. order[9] is going to contain garbage. If this array is going to contain prices, perhaps you should call it "prices" and make it
const
.
Line 138: Why are you doing a cin to your array of prices?
Line 154: You're assuming the person ordered 11 items. You're ignoring how many items were actually ordered.
Lines 154-159: You're adding up the prices (well actually the product numbers), not what the price of what the person ordered.
Line 154: You're going to make an out of bounds reference to order[10]. The elements of order are [0] to [9].
Line 156: You're adding doubles to an int. You're going to lose the decimal portion.
edit:
Line 50: This line will cause an infinite loop if you were to reach it.
Line 81: This condition can never be true.
Line 93: Your condition makes no sense.
Line 103: You have a comma in 3,00
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.