answersLogoWhite

0


Best Answer

The #include statement in C and C++ is used to incorporate (include) a file in the compilation unit at the point where the #include statement is encountered. It is used to incorporate commonly used files, often (but not always) rarely changed files, so that the developer does not need to incorporate common code more than once in a project.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why you write include in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you write your name on c plus plus turbo v3.0?

#include<iostream> int main() { std::cout << "Your name"; }


How do you write a programme to print a plus bi in c plus plus?

#include <iostream> int main() { std::cout << "a plus bi" << std::endl; return 0; }


Write a program in C to compute expansion 1 plus Xpwr2byfact2 plus Xpwr4byfact4 Xpwr6byfact6 plus .......?

#include ...double x, y;...y = cosh (x);


What is the code to include a library in c plus plus?

#include <libraryname>


How do you write a program to make a cross asterisk in c plus plus?

#include <iostream> int main() { printf( " *\n***\n *\n" ); return( 0 ); } Output: *****


Can you write own constructor in c plus plus?

Yes.


Can you write own consructor in C plus plus?

Yes.


How do you include userdefined headerfiles in c plus plus program?

#include "what-its-name-is.h"


How do you add a new library for Dev C plus plus?

If you want to know about adding new header files, then it is simple. Write your functions in a file. Save that file with extension .h in the include directry. Now, you can include this file using the #include directive


How do you write a program in c plus plus in which static variables are declared?

#include <stdio.h> static int myvar1, myvar2; int main (void) { puts ("It was easy"); return 0; }


What you can do in C that connot be done by C plus plus?

Nothing. In C++ you could write a C compiler. So, everything that can be done with C, can be also done in C++.


Write a program adding 2 plus 2 in c program?

#include <stdio.h> int main (void) { puts ("4"); return 0; }