Stupid Text Game
#3
(04-12-2017, 07:28 AM)Devon Wrote: Hey, nice program.

I was looking at the source code and noticed many massive clumps of if statements checking the condition of one variable, most being location.
As you are coding in C++ you can use the switch statement to reduce the size and increase the efficiency of these checks.

ok no idea why i looked at this, but I'll answer your question.

I hate switch statements, they piss me off. they are some of the most annoying things you can do in C++. also im lasy and programming the full thing using if and while true loops is much easier than using switch statements
[Image: ETQjSgL.jpg]
Made by Me X | Give a Rep, You May Get Something in Return *wink* ,Click Here


Messages In This Thread
Stupid Text Game - by dawson270500 - 03-07-2017, 06:35 PM
RE: Stupid Text Game - by Devon - 04-12-2017, 07:28 AM
RE: Stupid Text Game - by dawson270500 - 04-18-2017, 05:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)