The screen concept does not exist in C or C++. This abstraction is usually provided by the operating system or by third parties.
Realize that naming a header with .h does not make it C code. User headers in C++ are also usually named with .h and included with #include "meu_header.h".
To illustrate this concept, you can save your header without the .h and include it with #include "meu_header". If you want to go further and use < >, as in #include <meu_header>, Just copy the file to one of the standard header directories used by the compiler (in my Macos, for example /usr/local/include). None of this will make your code C or more++.
The header windows.h is an integral part of the Windows API (WinAPI). To WinAPI has several versions depending on the platform, for example Win16, Win32 and Win64. The Winapi aims to be used by codes typically in C language. Other Apis have been developed by encapsulating the WinAPI in order to facilitate its use, ex. MFC, ATL, WTL. For example, the MFC was developed with the concept of object orientation for typical use in C++. Ultimately, most frameworks for Windows will use the WinAPI, including .NET and Java. So if you’re going to use the Windows GUI features, your code will probably be depending on the WinAPI, even if not in an apparent way.
If the goal is to develop a GUI application using third-party libraries, there are options like Qt and wxWidgets.
Anyway, if you want to emulate a screen in text mode (style ncurses) using only C++ and STL, so I believe the way is to use special ASCII characters and then print the output text overlay.
Maybe it’s helping you
#include <QtGui>, read more here and here.– anacvignola