Hi guys, I was making a program a few months ago in C++ and in this program I used cin.getline but I found if I used this more than once in the same function some of the cin.getlines would be ignored once the program was compiled.

I was just wondering if anyone has any idea why this happens?

Thanks in advance.

Recommended Answers

All 4 Replies

Are you using MSVC6?

Yeah thats what I was using.

Thanks for the link.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.