C
C#3mo ago
Wallace

✅ Doing school HW and am unsure how to fix my issue. Trying to loop through an array with subroutine

No description
5 Replies
Wallace
WallaceOP3mo ago
No description
nullptr
nullptr3mo ago
you're not passing the cards as a parameter to loopA you'd need to do loopA(cards) to pass it
Wallace
WallaceOP3mo ago
thank you so much not sure how I overlooked that. have a good day
nullptr
nullptr3mo ago
its cool!! you too
FusedQyou
FusedQyou3mo ago
Note that if you want, you can also move that array outside of the method. This way you don't have to pass it as an argument (make sure to remove the parameter from loopA). You do need to also make the array static like the methods. I guess this is not what you're supposed to do in the assignment, but a little tip nonetheless
Want results from more Discord servers?
Add your server