-3

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?

Steven Chan
  • 473
  • 4
  • 19

1 Answers1

5

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.

gsamaras
  • 71,951
  • 46
  • 188
  • 305