You're right.
Code that depends on the operating system tend to be a pain, and need to be maintained to keep working with new OS versions. Regular C++ code is cross platform (meaning it will compile and work on a mac, or windows, or linux, or whatever) but GUI stuff (graphical windows, mouse input etc.) requires low level system dependent stuff. To make your life easier, you can just use a library (just some code developed by others and packaged to be reused), that does that complex and tedious stuff and automatically does it correctly for whatever system you're on.
QT, glfw, SDL, etc. are just examples of some code that some companies or people have written to do some of those types of things. You don't need to know those things unless you want to use them and there are a bunch of choices. So I would just forget about it for now. If you decide one day you want to make a video game with graphics, just start googling to see what is available to make your life easier, or ask for advice on a forum.
To start with, you'll probably just be making console programs and won't require anything extra.
I feel for you. I started with Visual Studio as well and hated it. It's like having a control room to run a city when you just want to turn the lights off and on in your house.
Maybe you could just try the command line. Get some text editor like sublime text or notepad++. Then just compile your file directly. Once you want to do a large project, or use a debugger, or profiler, then consider using an IDE?
https://www.sublimetext.com/
https://notepad-plus-plus.org/
You can try from the command line.
$ cl /EHsc yourfile.cpp
Or follow these instructions.
https://docs.microsoft.com/en-us/cp...-cpp-program-on-the-command-line?view=vs-2019
You can also use an online tool just to try running a simple program
https://ideone.com/ (you can select from a bunch of languages here as well).
Otherwise, if you want to use Visual Studio as an IDE, have you tried creating a new project? I think it will create a directory for you somewhere and manage all your files for you and everything. I haven't used it in years, so I can't give specific advice.