You write source code. That is plain text. Any program, that can write text, can.

C++ compiler converts -- compiles-- the source code into binary program. There are many C++ compilers.

MinGW -- Minimalist GNU for Windows -- is a collection of GNU programs that have been compiled for the Microsoft Windows platform. That collection does include GCC -- GNU Compiler Collection -- that has one C++ compiler.