15 Reputation Points
Ranked #2K
- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: EDIT: Sorry I overlooked the C# context. And replied in c++ like. Though the fundamentals are probably the same. Answering with my limited knowledge of enums: Enumerations exist mostly for readability. There might be a few special cases that you can't achieve without enums, but mostly it's a special array. … | |
Re: After the first cin.get(), with an input of 4<enter> you have 4<newline> in the input stream. You get the 4 out of it, but the newline is still there. Since the stream isn't empty your program won't wait for input on the second cin, and read newline instead. |