If you want to run certain functions in order to see if they're working properly, that is a good thing and is called Unit Testing.
You want to look into the C++ unit testing features of Visual Studio.
https://learn.microsoft.com/en-us/visualstudio/test/writing-unit-tests-for-c-cpp?view=vs-2019