Secondly conio.h is not in standard C++ or C. Visual Studio does not include it.
However, it does include the Windows Platform SDK (as of VS2008 Express Edition, don't know about the full versions) and so you can use the Windows platform methods.
Your link is the same as the previous one. What do you perceive as the problem with using the method I suggested? All of these functions can be replicated using the Windows Platform SDK.
void gotoxy(SHORT X, SHORT Y){ COORD position = {X, Y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), position);}void clrscr(){ HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_SCREEN_BUFFER_INFO bufferInfo; GetConsoleScreenBufferInfo(hOutput, &bufferInfo); DWORD length = bufferInfo.dwSize.X * bufferInfo.dwSize.Y; COORD start = {0, 0}; FillConsoleOutputCharacter(hOutput, ' ', length, start, NULL);}
Also, that CenterPrint function isn't portable. It needs to get the buffer width and height and then divide them, rather than assuming 80x25 (which, admittedly, is fairly standard).