>is their anyway to save the answers without having to make 30 variables?
There are two ways, depending on how your program works with the answers. If you can process each answer as it comes then there's no need for more than one variable. If you have to save all of the answers before processing them, you can use an array or some other container. An array should work for now, but if you don't know how many items you'll have to store, a vector is a much better choice.