I don't understand why I can't figure this out T_T
AureyLia

Hey, so I have this program I need to do for class and I think I've got it mostly down. I just can't figure out how to fix my CS0103 error...
How do I make sure my variable meal is stated for my method 'DecideMeal'? Or do I need to fix something else altogether?

You are viewing a single comment. View All
SixBeeps

You need to declare meal before using it. You're technically doing that on line 14, but that version of meal is different than the one you're setting in DecideMeal().

Solution: redeclare meal as a string at the top of DecideMeal()