Write your question here.
I am trying to make the random number game and have it so the user can set in min and max number to guess between as well as set the number of tries the user has. Can someone show me what code i need to add, i really just hit a wall on this one. I also need to change it from dasychained to separate functions to call in the main. I don't know how to. Thank You so much.
Lines 4-5: standard library headers should use <>, not quotes.
line 7: The correct header for C++ is <cstdlib>.
line 8: Not needed since you have the <ctime> header.
Line 13: You need {} around your function. You're missing an operator between rand() and the expression that follows it. maxbound, minbound are not defined in this scope. minbound0 Is this a typo?
Line 21-22: These are function prototypes, not variables.
Lines 30-34: What is the purpose of minbound and maxbound. They are not used. They're referenced in ChooseRandomNumber, but ChooseRandomNumber is never called.
Any place you have a while (true) loop, is probably a good condidate to replace with a function.