
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
Why should I not #include ?
The <bits/stdc++.h> is a header file. This file includes all standard library. Sometimes in some coding contests, when we have to save time while solving, then using this header file is helpful.
In software engineering approach we should reduce the minimize the include. Using this header file, it will include lots of files, sometimes that may not be required in the program. So it may increase the compile time and program size.
Some of the big disadvantages of this header file is listed below
This <bits.stc++.h> is not a standard header file of GNU C++ library. So some compiler may fail to compiler source code with this header file.
Using this, it may require unnecessary longer time to compile.
As this is not a part of standard C++ library so it is non-portable
For this header file, every time the compiler tries to import the headers recursively every time the code is compiled.
- Related Articles
- Why should I use Hubspot?
- Why should I eat eggs?
- Why we should not waste water?
- Why Should I Become a CBAP?
- Why should we not use ++, -- operators in JavaScript?
- Why should we not use an umbrella during lightning?
- Why we should not use tables for HTML Layout?
- Why should eval be avoided in Bash, and what should I use instead?
- Why we should not pick up caterpillars with bare hands ??
- Why we should not eat food in lying down position?
- Why should I read the autobiographies of some great personalities?
- Why should a magnet not to be kept near the computer?
- Why should we not store a number into a MySQL ENUM column?
- Why we should not keep the lemon pickle in an aluminium vessel?
- Why should oils and fats be not released in the drain? Explain.
