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
Related Q & A:
- How do I make a python web program that is on a ubuntu server allow access to the server?Best solution by Yahoo! Answers
- How can I connect a printer wirelessly to my laptop without a router? Which printer would be the best?Best solution by Yahoo! Answers
- How can I become a part time academic whilst already in a career?Best solution by Yahoo! Answers
- How can I transfer all of my Yahoo email files to a document file in my documents?Best solution by Yahoo! Answers
- How Can i turn a black and white picture back into a colored picture?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.