could any one tell me the exact syntax and semantics of cin.get() and cin.ignore() ?

Take a look at my post about heap corruption, in my code you can see how I used it. Granted, the cin.ignore portion is pretty extravagant, but it does clear anything left in the buffer

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.