Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
I have an annoying problem with this piece of code: [CODE] int len = 5; char str[5]; do { cout << "Enter a string: "; cin.getline(str, len); } while (true); [/CODE] when the length of str is less than 5, the code runs fine. I can re-enter the string over … |