title: How do I compile in C, but throw errors if I use any C++?
body: <p>I am a student. I am proficient with C++. I know that C++ and C are very similar and that a C++ compiler can compile C. However I want to become comfortable with C for a multitude of reasons. I was wondering if there is an option I can include with g++/gcc that will throw a error if I use C++. 
  Thank you</p>