C++ Actor/scene component not showing up

Have you compiled this? You can build by pressing F5 in Visual Studio
There is also a setting in editor settings that will automatically build when you launch the project if there are code changes, you can search for Force Compilation on Startup in the editor preferences to enable it.
I would recommend launching through VS though, by pressing F5 every time, instead of launching through the launcher or the .uproject file