Make sure your environment variables are set correctly, which is typically taken care of by running the Developer Command Prompt for Visual Studio.
// Pause the program std::cout << "Press any key to exit..."; std::cin.get(); microsoft c++ 2019