{"id":35,"date":"2011-01-07T13:56:55","date_gmt":"2011-01-07T13:56:55","guid":{"rendered":"http:\/\/www.vsit.in\/vsit-blog\/?p=35"},"modified":"2011-02-17T12:11:07","modified_gmt":"2011-02-17T12:11:07","slug":"how-to-create-header-file-in-c-c","status":"publish","type":"post","link":"https:\/\/www.vsit.in\/vsit-blog\/how-to-create-header-file-in-c-c\/","title":{"rendered":"How To Create Header File in C, C++"},"content":{"rendered":"<p>Header files are also called library of C, C++, which include definition of C, C++ built in functions. To create a header file in C, C++, we are using TURBOC as editor. First we need to create a file including macro or function and save it with .h extension in include folder of TC, (eg: c:\/tc\/bin\/head.h).<\/p>\n<p><strong>code : head.h<\/strong><\/p>\n<p><strong>void fun()<br \/>\n{<br \/>\ncout&lt;&lt;&#8220;Best Programming Institute in delhi&#8221;;<br \/>\n}<\/strong><\/p>\n<p>and after that we can include header file in our program,<\/p>\n<p><strong>code : file.cpp<\/strong><\/p>\n<p><strong>#include&lt;iostream.h&gt;<br \/>\n#include&lt;head.h&gt;<br \/>\nvoid main()<br \/>\n{<br \/>\ncout&lt;&lt;&#8220;we are learning how to make header file in c++ \\n&#8221;;<br \/>\nfun();<br \/>\n}<\/strong><\/p>\n<p><strong>Thank you<\/strong><br \/>\n<strong>Team VSIT<\/strong><br \/>\n<strong><a href=\"http:\/\/www.vsit.in\">http:\/\/www.vsit.in<\/a><br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Header files are also called library of C, C++, which include definition of C, C++ built in functions. To create [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-c-c-training"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"shubhranshu shekhar","author_link":"https:\/\/www.vsit.in\/vsit-blog\/author\/admin\/"},"uagb_comment_info":4,"uagb_excerpt":"Header files are also called library of C, C++, which include definition of C, C++ built in functions. To create [&hellip;]","_links":{"self":[{"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":4,"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/posts\/35\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vsit.in\/vsit-blog\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}