Header creation in CPP

188 views
117 views

Published on

Header creation in CPP

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
188
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Header creation in CPP

  1. 1. String Functions in C Typing Speed: 28 Ismail Ismailpk456@gmail.com Ismail Ismu Ismail Ismu in.linkedin.com/in/profilename 8086303494
  2. 2. Header File Header File is a file that allows programmers to separate certain elements of a program's source code into reusable files. Header files commonly contain forward declarations of classes, subroutines, variables, and other identifiers.
  3. 3. Steps in Header File Creation 1. File->New->Project...
  4. 4. 2. Main Toolbar->New file (button)->File...
  5. 5. Example #ifndef CAL_H_INCLUDED #define CAL_H_INCLUDED int calc (int a, int b) { int add; add=a+b; return (add); } #endif
  6. 6. #include <iostream> #include "cal.h" using namespace std; int main() { int a,b,add; cout<<"Enter Two numbersn"; cin >>a>>b; add=calc(a,b); cout<<"sum="<<add<<endl; }
  7. 7. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com
  8. 8. Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550
  9. 9. THE END

×