answersLogoWhite

0

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

14y ago

What else can I help you with?

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>


Can you write own constructor in c plus plus?

Yes.


Can you write own consructor in C plus plus?

Yes.


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: *****


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


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++.


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; }


Write a C plus plus function that print a triangle of stars?

Write a function that print a triangle of stars.