cin.get() works for me. Can you give an example that fails? What do you mean by "works", are you expecting cout to output something?

Why are you using cin? Is the data coming from the console?