+ 5

How do you include all libraries in c++?

22nd Jun 2017, 5:03 AM
amazing_coder
13 Answers
+ 5
oh thank you @Hatsy Rei
23rd Jun 2017, 12:20 AM
amazing_coder
+ 12
I've just found out this cutting edge technology named 'Google', which gave me this link. https://stackoverflow.com/questions/25311011/how-does-include-bits-stdc-h-work-in-c
22nd Jun 2017, 5:48 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
@Highman Yes. Tbh, I hope he knows why we really shouldn't include all headers/libs in practical applications.
22nd Jun 2017, 7:07 AM
Hatsy Rei
Hatsy Rei - avatar
+ 7
make a file called includes.h or something and put all the headers you want to include in there. then just include that file instead of typing all the other headers?
22nd Jun 2017, 5:18 AM
jay
jay - avatar
+ 5
@Highman: we did.. i type super slow on the mobile so we must have started typing the same thing at the same time! You know what they say about great minds šŸ˜Š
22nd Jun 2017, 5:24 AM
jay
jay - avatar
+ 3
why do you want to do?It does not have any sence;)
22nd Jun 2017, 5:11 AM
Highman
Highman - avatar
+ 3
like i have many libraries i want to include like i, iostream, string and all these
22nd Jun 2017, 5:12 AM
amazing_coder
+ 3
within 0.5 sec execution time
22nd Jun 2017, 5:12 AM
amazing_coder
+ 3
if you want to include lots of standard/nonstandard module you can make a new your own h/hpp module which contains only other includes you want to group and in other modules you can add only this one.
22nd Jun 2017, 5:17 AM
Highman
Highman - avatar
+ 3
@jay:hit the jackpot:)))
22nd Jun 2017, 5:22 AM
Highman
Highman - avatar
+ 3
@jay:I am not also fast writter on my cell.Now I am in the train and going to work:)))Yes,same think in the same time:)
22nd Jun 2017, 5:27 AM
Highman
Highman - avatar
+ 3
@Hatsy:nice to faster problem resolving with header dependency, but he must be aware that it is not a part of standard and it is not portable among compilators(it is applicable for GCC).
22nd Jun 2017, 6:55 AM
Highman
Highman - avatar
+ 1
what do you want from the program.#include<iostream> include all work
22nd Jun 2017, 5:29 AM
Saad