I am assuming you are looking to sell as an individual so the following terms would apply to you:
Cited from https://visualstudio.microsoft.com/vs/community/
I don't see anything wrong with developing C++ inside VS Community. You can read the terms in full here:
https://visualstudio.microsoft.com/license-terms/vs2022-ga-community/
----------------------------------
If this is helpful please accept answer.