✅ Having issue with CS7036 (No argument given that corresponds to the required parameter)
Hello. I am currently learning methods and I'm having trouble with a specific line of code regarding "EnterContest()". I am unsure how to fix the CS7036 issue being produced by it. I have tried many things, but to no avail. I want it to pass a bool for playing a game unique to a club depending on whether they win or not.
4 Replies
I think I may have figured it out after reviewing the instructions
People generally don't memorize the error numbers @Spirit. What's the actual error message?
Pardon me, the description is there is no argument given that corresponds to the required parameter
specifically, gameRandom of Program.Enter.Contest(Random) [a method]
anyways, I solved the issue by initializing the object before calling the method which is what I should've done in the first place
I will go ahead and close this as I have figured out the issue and resolved it. Thank you for your time.
!close
Closed!