Structs, loops and arrays | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Structs, loops and arrays

I'm trying to get the product quantities to decrease each time a product is ordered, however, at the moment, it isn't doing that, it just holds the one value https://code.sololearn.com/cA453BxIcp9U/?ref=app

11th Dec 2017, 9:38 PM
Roguesquid
Roguesquid - avatar
1 Answer
- 1
Given line 192 definition of ProductQuantity is blue, I'm guessing it is defined as a type elsewhere causing issues for your code. Try renaming it.
11th Dec 2017, 10:25 PM
John Wells
John Wells - avatar