|
|
back to boardA common mistake Posted by D_G 1 Apr 2012 00:23 I noticed a lot of people complain about WA2. Just wanted to share my experience, since I got WA2 several times. Don't forget that after you read the number, you haven't read the newline after it. So cin.getchar + cin.ignore and getline(cin, ...) get that exact newline. Re: A common mistake Thank you! :D Re: A common mistake Thank you! |
|
|