how to run c++ file mingw cmd

C++
//for file veer22.cpp 
g++ veer22.cpp -o veer22.exe
Source

Also in C++: