All of the suggested compilers are both C and C++ - just name the file as myfile.c and it compiles as C, call it myfile.cpp or similar, and it compiles as C++. [Unless you specifically work at subverting this behaviour, as both gcc and MS compilers have switches that allow you to force the compiler to compile the code as C++ rather than C or vice versa].

--
Mats