+ 2
What is alternative for #include<bits/stdc++.h> in c language?
2 Answers
+ 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.
+ 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