#C++ switch statement inside a class. I am getting prompts to put a ; at the end .

6 messages · Page 1 of 1 (latest)

quaint pendantBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

tired otter
#

This code worked fine . when all was in just the main.cpp. In attempt to seperate some of the functionality I am getting errors. Can I have a switch statement inside a class ?

tiny yarrow
#

that being said, I'm not sure why this is a class in the first place

tired otter
#

initially it wasn't a class . I was getting some error messages that made me thing maybe I need to make it a class.

#

side note: read somewhere instead of just watching tutorial build something and learn from that. hence the many mistakes