+ 1

Structs and array help

I'm trying to complete a question, that is asking to calculate profit on orders, I can't get the code to either utilise every product in an order, it only completes the first product. there is also an issue that the discount can't be used, it says that as it's on a foreach loop, it can't be changed data is arranged as order number, customer ID, list of products separated by commas

5th Dec 2017, 2:53 PM
Roguesquid
Roguesquid - avatar
3 Respostas
5th Dec 2017, 3:03 PM
Roguesquid
Roguesquid - avatar
+ 1
The code currently up there will output the first product in a customers order, but will then move onto the next order, even if there is more than one product in a order
5th Dec 2017, 3:06 PM
Roguesquid
Roguesquid - avatar
0
A sample of the code will be nice
5th Dec 2017, 2:59 PM
Amir Galanty
Amir Galanty - avatar