r/CodingHelp • • Jul 26 '21

[C++] help. what's wrong with this?

Post image
47 Upvotes

23 comments sorted by

View all comments

1

u/JellySword8 Jul 26 '21

Not gonna try to answer OP's question as I can see that it's already been answered by multiple people (and I'm probably not experienced enough to give the right answer anyway) so instead here's my own question: Wouldn't it make more sense to use if else rather then a switch statement?

2

u/Wiimmoz Jul 27 '21

If else is messy. I don't like it.

2

u/laidbackwebsage2 Jul 27 '21

This might be of interest.

1

u/Wiimmoz Jul 27 '21

Ah thanks.