What is a C header file?

How do I declare a c++ class and its functions in a header file?

  • I created a c++ class with following members private: int x; public: void assign(int a); int get(); How do I define the class and functions in a header file so that I ...show more

  • Answer:

    See Header file is just collection of classes. So u can create class same as in C++. n include that header file to your program and use like normal class by creating object

I3EVPL5P4DVZERFEVOPAK3NT3M at Yahoo! Answers Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.