Search code examples
cclasseclipse-3.6

How to create a C class on Eclipse


I am learning how to program in C and using Eclipse helios that can compile both C and C++. When I tried to create a class, it always says creating a C++ class but not C. How do I create a C class with some default setting(#include, #include, etc.) on it?


Solution

  • C does not have classes.

    The capability of your IDE to compiler both C and C++ doesn't mean that it can transfer the constructs and concepts of C++ into a C program. It means that you can either compile a C program, or a C++ one.