Hey, ran into a little bit of a problem.
I'm making a menu that uses switch statements which uses function prototypes.
I guess my question is, do I have to write my switch before int main? or can it be included in my int main?
You first have to get the value of option from the user: cin >> option; . Then you can start checking option . Otherwise option will have some garbage value.
Duh, I knew that... Okay maybe another question that'll be a little harder to answer?
I select 1 and it just runs the program super quick and exits the console.