When you enter data for your Magic 8 Ball question are you entering a text question? Trying to stuff text into an int will cause an infinite loop. Enter an integer number and no infinite loop of scrolling text.
Hello, and welcome to my MAGIC 8 BALL!
Would you like to play ( 1 = YES 2 = NO )?
1
Please give the Magic 8 Ball a question.
1
You got 4 which means:
ASK AGAIN!
Would you like to ask another question? ( 1 = YES 2 = NO)
2
Alright bye.
Visual Studio errors out when trying to compile your source as written, you need to include <cstdlib> and <ctime> for the srand/rand and time C library functions.