cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to use switch statemenys
How to use switch statemenys
Jan 17, 2016 at 10:49pm UTC
YvngSavage
(61)
How could you use switch statements to ask a question like - "Would you like to go [r]ight, [l]eft, or [c]ontinue?" Im trying to make a game and i think that a switch statement would be more efficient than if, and if else statements...
Jan 17, 2016 at 10:51pm UTC
TarikNeaj
(2580)
Use google/Youtube? Already millions of examples of what youre asking out there.
Jan 17, 2016 at 10:51pm UTC
YvngSavage
(61)
Fair enough ^
Jan 17, 2016 at 11:12pm UTC
closed account (
E0p9LyTq
)
Statements and flow control (include switch statements)
http://www.cplusplus.com/doc/tutorial/control/
Topic archived. No new replies allowed.