This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C++ using class



Hi,

I am a new user of C++ CCS. I have some problems about using class.

In my project I create two cpp source file one of them main other one for functions and one header which has a class with public functions and variables.

When I include header file to main file and functions file naturally it says you define class twice.

 I usualy create two header. One of them has orginal define other one is extern.

But in this case it doesnt work.How can I use class functions and variables in two source file?

Thank you .