New course! Every coder should learn Generative AI!
Try a free lesson+ 1
As the creator of C++ recently said "C++ is for important software". If your important software needs a GUI as in games, you do GUI. If you need performant servers you do CLI.
For learning GUI as in non-3d you use libraries as wxWidgets or QT. For 3D stuff you usually use a library like OpenGL, OSG or some engine.