cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Urgent pleaseeeee :'(
Urgent pleaseeeee :'(
Oct 7, 2016 at 4:29pm UTC
theturk1234
(148)
Please refrain from using "urgent" in the topic title. This turns people off.
The code seems to have no structure, so It's difficult to understand what it's supposed to be doing. You can use the
1
2
default
: someexpression;
For a default action in a switch statement.
Last edited on
Oct 7, 2016 at 4:29pm UTC
Oct 7, 2016 at 4:31pm UTC
SamuelAdams
(1535)
Isn't that what you did at line 271 ?
If no, i'm not sure what your asking.
Oct 7, 2016 at 7:42pm UTC
AbstractionAnon
(6954)
Your program is difficult to read without proper indentation.
You should consider the use of functions to avoid repeated code.
gotos are evil.
I personally detest nested switch statements. If you have to nest a switch statement, put the nested switch statement in a separate function.
Topic archived. No new replies allowed.