Thanks for the reply!! I actually figured it out since writing this. I spent five hours trying to figure it out, so in case anyone in the future needs help: All I did was (I think!) change the scope of the variables by removing the entire PrintMenu() function, putting it in main in a for loop(PrintMenu was in a for loop in main anyway). I thought I would have to use reference variables (???) but I guess I'm too new to be able to use them correctly.