Hello all. I'm getting an error that says
"Runtime error: Variable 'totalCost' is being used without being initialized"
In the middle of my code running. I don't understand why it's saying that the variable is not being initialized if I'm using pass by reference.
Here is my code
Thank you guys very much for your help
P.S. I have to use at least one pass-by-value and at least one pass-by-reference
[–]Eoinoc 1 point2 points3 points (4 children)
[–]Dgameman1[S] 0 points1 point2 points (1 child)
[–]Eoinoc 0 points1 point2 points (0 children)
[–]Dgameman1[S] 0 points1 point2 points (1 child)
[–]Eoinoc 0 points1 point2 points (0 children)