Hi . You have to include windows.h and use console API

See http://msdn2.microsoft.com/en-us/library/ms682073(VS.85).aspx