+ 2

What is alternative for #include<bits/stdc++.h> in c language?

22nd May 2018, 7:27 AM
Amruta K. Savvashe.
Amruta K. Savvashe. - avatar
2 odpowiedzi
+ 19
I guess u have to include all the header files required in ur program individually...... iostream/stdio.h(C), algorithm, map, etc.... all that <bits/stdc++.h> includes which u r going to use in ur program... <bits/stdc++.h> header file is not part of the C++ standard, is therefore non-portable, and should be avoided.
22nd May 2018, 12:06 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 3
You can write you own "whole_std.h". Note that this blows your executable size on the hard drive. It would look like this: #pragma once #ifndef SUPER_SAFE_GUARD_WHOLE_STD #define SUPER_SAFE_GUARD_WHOLE_STD #include <algorithm> #include <array> //Type out the rest, you want to use it, not me. #endif
22nd May 2018, 1:46 PM
Timon Paßlick