1) it should be
int main()
not
void main
2) You have two variables named 'meat'. This is a name conflict. Which 'meat' do you expect the compiler to use and where? Name them something different.
3) Your prototypes are missing semicolons.
4) Why would you be using printf if you're using cout? why not just use cout? Not that big of an issue, it's just a consistency thing.
5) I don't know what carrots, turkey, beef, etc are, but they're sure not doubles. You probalby meant to make them strings, in which case you should have arrays of strings (not doubles) and you should be putting them in quotes. ie: "turkey", "beef", etc.
6) You need to put breaks in your cases (in your switches). Remember that program flow doesn't exit the switch when it comes to a case label, so unless you put in breaks, if something runs the first case label it will run ALL the case labels.
7) You don't really even need a switch anyway. The whole point of having a lookup table like you have is to avoid that mess. Instead of having a case for every possible selection, do something like this:
1 2
|
if(number_is_in_range)
side_dish = option[number - 1];
|
8) A lot of these errors would be exposed if you actually tried to compile this code. You really should be compiling
FREQUENTLY and fix errors right away. I get the impression you're just writing tons of code and never compiling to see if any of it is valid... which leaves you with what you posted: a bunch of code that is
almost C++ but is full of errors.
9) There's probably more, but I'm stopping for now.