i have had slightly the same problem hours ago.
i use the "Dev-C++ (Bloodshed) vers. 4.9.8.0" on a Windows XP machine.

if(kbhit())
{
i++;
}
instead of just executing the i++ one time it...