I want to learn C++ and I using YouTube, but there in code are modules conio.h
and dos.h
. But GCC don't knows them. Which whit the same functions I can use? (Any from another questions about this don't solving my problem)
I tried remove conio.h
from code, but in the code, I have functions from it. That same with dos.h
. After that, my text editor offered to me module coco_conio.h
. What is that?
Functions , that I think that are from conio.h
and dos.h
:
#include <conio.h>
#include <dos.h>
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
COORD CursorPosition;
void setcursor(bool visible, DWORD size) {
CONSOLE_CURSOR_INFO lpcursor;
lpCursor.bvisible = visible;
lpCursor.dwSize = size;
SetConsoleCursorInfo(console, &lpCursor);
getch();
if(kbhit()) {