How to create a user defined header file in cpp?

Answer

1. open word processing software. (Notepad or wordpad)

2. Write the desired function for the header.

3. Save it with .h as extension. Like "myheader.h"

4. Run cpp.

5. It should be like this... #include "myheader.h"

Improve Answer Discuss the question "How to create a user defined header file in cpp?" Watch Question

First answer by Juanito Dado Jr. Last edit by Juanito Dado Jr. Contributor trust: 218 [recommend contributor]. Question popularity: 57 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > How to create a user defined header file in cpp?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Header file creation in c?  How do you write a c header file?  Example in which use a user defined header?  How do you create user defined header files in C?  How do you create a user defined header file in c?  Why if defined at the begining of the c header file?  A function is declared in C header file When you try to implement in a c source file it is giving error?