variables may not be initialized

Ben Hultin

Ranch Hand

Posts: 135

posted 7 years ago

I am setting up a simple dice game and need to enter the players names. After creating the loop to go through and check and assign values to the different players names variables, the compiler tells me that the variables in my if else if statement may not have been initialized ( the compiler points specifically to the variables in the arguments section inside the () of each if and else if check). The problem is I am pretty sure I declared them properly. Maybe I missed something?