+ 8
NUMBERS GAME
Check out this simple game. https://code.sololearn.com/cSTN2C47WNWz/?ref=app
5 Respuestas
+ 11
Using Roman numerals in switch case evaluation of integers is invalid.
Use srand() and rand() instead of randomize() and random(). Include <cstdlib> (<stdlib.h> works nonetheless) and <ctime> for time().
Can you please indent your code ffs? :D
+ 9
@Corey, better, but remove <random.h>, and strings don't work with switch structures.
+ 7
follow the error messages! use them to guide you 😀
+ 4
Problem is solved .
Now the program works well by using srand() and rand() and using integers in switch.
Thank You !
+ 1
I fixed a few things
https://code.sololearn.com/cbtJw68YrD0N/?ref=app