Github Support Community for C++ Developers #21450
-
A support communnity for C++ developers like me allways looking foreword for some help from other developers. Ask quuestions on this topic and share it with other developers. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The #software-development category would be the right place if you’d like to discuss programming issues on this forum. I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Can Anyone helpp me with this c++ code.
The code implements a structure named |
Beta Was this translation helpful? Give feedback.
-
You could just use See here. |
Beta Was this translation helpful? Give feedback.
-
Thank you For your Help |
Beta Was this translation helpful? Give feedback.
cin
andgetline
don’t play nice together.cin
leaves a newline in the input buffer, which causes yourgetline
to fail.You could just use
cin
instead ofgetline
to populatename
or you could callcin.ignore()
just before callinggetline
.See here.