-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
  • 453
  • 4
  • 16

1 Answers1

4

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
  • 69,751
  • 39
  • 173
  • 279