Well, conio.h is platform dependent. If you try to compile Linux, your code probably will not compile. In addition, using functions to control the console window makes your program less repetitive than if you used only standard input and output (you cannot redirect stdin / stdout so easily).
If you are creating rich console applications, you can use cross-platform libraries such as ncurses .
Tibor source share