Problems with Getch() program execution order

This is a discussion on Problems with Getch() program execution order within the C++ Programming forums, part of the General Programming Boards category; I'm having problems with the getch() function. The following program executes like this:
(type in "napKIN" then <enter>)
(output)napKINHow do ...

"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens