Replace all HEADER FIlES with one SINGLE HEADER FILE in C++ | Coding Tips
Vložit
- čas přidán 27. 08. 2024
- SUBSCRIBE to channel for more PROGRAMMING related content.
CONNECT ON INSTAGRAM : / i._m_.luv
COMPETITIVE PROGRAMMING COURSE Playlist : • Competitive Programmin...
This tip will help you tot replace all headers file with one header file in c++
#shorts #programming #tips
Follow me on below platforms for all the latest updates
○ Instagram : / i._m_.luv
○ Twitter : / luvk1412
○ Linkedin : / luvk1412
○ Blog : www.codewithlu...
FREE COMPETITIVE PROGRAMMING COURSE PLAYLIST : czcams.com/play/PLauivoElc3ggagradg8MfOZreCMmXMmJ-.html
CONNECT ON INSTAGRAM : instagram.com/i._m_.luv/
This is not working please explain this
It's not work
How can I contact you
Hi
How to learn Ethical Hanking in free ❓
This is generally bad practice but for competitive programming this should be very helpful.
Why is bad practice though?
@@vishnusingh4118takes more compilation time
@@vishnusingh4118 isn't it obvious, you are taking in so much more files you don't need and including them in your binary
@@anowarabegum4660 isn't c++ compilers smart enough to filter out unused code from the binary file. I mean , you may have heard of Nextjs , even that little framework has this feature of automatic code splitting (loads only the packages needed for the front-end to render a react ui)
@@sidheshwartiwari9834 No
I don't know anything about coding
Still I am watching because it looks intresting 😂
You should learn this is very interesting I love coding it is our future we use coding too improve A I
@@bhargavtiwari9058 Wow , Sounds great 🤩
@@pianoguy5110 thanks bro sorry for late reply
Same bro i am 14 years old and im a beginner
@@dracoarmyff9126 I am also 14 but I know much about code😁
I didn't understand anything but still I watched till end 😂😂
I don't know why
But I understood
You should give full information about it, it will increase compilation time, and most importantly it isn't a Standard header, so it might produce machine dependent code, which isn't a good practice
Most common failure point is, using clang instead of gcc or using mac instead of windows
Everything has its own ups and downs, so it's better if you provide full information
I am sticking to standards here. This video is made in refference to competitive programming. All the online websites use gcc as standard compiler. If you are using gcc it is not going to produce machine dependent code. In mac you can install gcc and use this header. I do same on my Mac. Regarding compilation time, I have explained this in my other video of time complexity but as this a short, it is meant to give imp knowledge in less than a minute. People can watch that longer video also. And I have also replied regarding compilation time in many comments. People can read that also.
It is worth full in online practice
Op
Thank you for bringing that to out attention
@@iamluv Yeah kaun sa app use kr rahe ho aap coding ke liye...
if I use that in college lab, sir will beat me up😂
still thanks for sharing, I'll try while practicing for competitive programming 👍🏻
i got that beating already!
@@flashbao1922 😂👍🏻
Why you got beating?
@@sovereignboss1841 cuz Teachers never like shortcuts. They need the exact answer which is in book. ✌️
@@sovereignboss1841 cuz it is a bad practice
This will increase the exe file size & compilation time
C++ without a bunch of statements is doesn't seem complete
czcams.com/users/shortsk90VjT1DwRo?feature=share
i LIKE THIS TYPE OF TRICK
Brooo no way. You are a legend
Great bro aese he tricks banaty raho status se dekhi video bht kamaal ka kaam ker rahy ho😉
Subscribed 👌
You dont know how much you help me i owe you bro thanks
It will increase the compile time for the program, if u use that header file but you can optimize it using GCC PRAGMA OPTIMIZATION
FOR EXAMPLE:
#pragma GCC optimize (O3)
It may not work for all the compilers but it will work for most of the online compilers, along with competitive programming ide's like code chef, code forces,ect.
But it's a bad practice to use that header file.
Especially while using c++ for application development, like developing games and kernal programming, or win_services .
Thank you, these videos are helpful!
I like your video for save 😁😁
#include
One suggestion is that you have to also mention that if you are practicing then it is good just don't use for real projects.
Otherwise newbie's get confused or they misguided seeing this..👍
Thanx for this kind information sir 🙂
this increases compilation time by 2 to 3 seconds
It doesn't increase the compilation time by 2 to 3 seconds, max i would guess would be 1 second. Anyways compilation time doesnt matter in programming contests, execution time matters and it has no effect on execution time. Hence its very helpful in programming contests.
@@iamluv My PC is slow then LOL
@@sumanto_pal sayad aapko apna comment edit kardena chahiye, kyunki it is not true for single file on most pc
@@iamluvBhai luv bhai ke vs code ke output me Jo time dikha raga he
Vo kaise aata he plz batado
@@sureshrathod7103Use sublime text
Wow first time in actually understood Indian accent and it was actually helpful!
Hey sublime setup video maybe??
Edit : watch this for setup -> czcams.com/video/Zlx7gmt3lBU/video.html
@@iamluv ha bro setup vala video badhiya rhega
Visual studio
I am a beginner and i am glad to watch this short
Thanks bro, it was really help full.🙂
Library is One man army itself 😂
I have learnt a new thing today
Great tip thanks man🔥
Bhai thanx yrr.Iski bahut zyada zaroorat thi
So, you'll convert c++ into python partially?
🤣
valarray is closest thing to python in c++
It' can increase the size of code ,
So it can occupy lots of space in results it take so many time to compile the code.
Actually is a useful header but it also increases the compilation time of our program it’s actual a bad practice for competitive programming this header will include many unnecessary headers too which will increase our run time for eg to do square root we can use math.h then sqrt function but we can direct use bits/stdc++ now … and after using it we won’t even need to include iostream
Thanks It Helped 😊😊
This is very helpful for competitive exam
The thing I miss the most in mac
It works in mac as well, mac by default doesn't uses GNU/GCC compiler, search on how to make gcc,gnu your default compiler, it will work
@@iamluv wow, I didn’t know that. Thanks
@@iamluv bro can i get your contact
@@iamluv need some help
Amazing trick 👍🏻
Great information bro...thank you ❤❤❤🔥
This helped me in my viva today
thank you!! my question is if a particular contest has some constraint regarding time complexity of program lets say 1sec...will it effect time complexity ??
No
I need help , I forget my gmail password. I turn on 2step verification after resetting my phone I can't sign in 🥺🥺🥺 I have recovery phone no. & Gmail also. But they want 8 digit backup code. Please help me anyone here 🥺😥😥😥😥
@@mrknight7979 Try mobile OTP method.
Wow thanks bhaiya
Ye sahi hai bro🔥💪errors se parashan hu me
This helps a lot
It is a recursive approach to header call and might slow down your program rather than doing this i suggest to create a separate header file which includes all these header so you can reduce compilation time and increase reusability
this is only being suggested for competitive programming not for live production projects, in CP compilation time doesn't matter, hence this becomes very convenient.
can you please also make one video for java also....
This is good and helpful advice.
Very helpful ☺️
Thanks 👍
Better than white hat jr 👍👍🔥
Good and God bless you
thank u so much sir ji...great helpful.vedio...& u r knowledgeable person...your knowledge is very greatful...& helpful for me.& my study..
Thank you bro it was soooooooooooooooooooo helpful😢😢😢😢😢😢
Very nice
System ("cls");
Sleep function is not working in this header file
cause in competitive programming we don't use System functions and this header is strictly for competitive programming not for in general
It's more heavier than including all separately because you don't have to use everyone of these in one program and it increase load on the compiler.
it does but it doesnt mattter, in cp runtime matters compile time can be high.
Great... Now I am your new subscriber
#Include
Next...... Please reply full header code....
SIR CAN YOU PLEASE TELL ME WHICH THEME YOU USING IN VS CODE??❤️LOVE YOUR CONTENT
Thank u so much sir ji.🙏🙏🙏🙏🙏
----- Kabhi kabhi to Lagta hai Apun ich bhagwaan hai
Pehle video m hi dhamaka🔥
Bro I am BCA student and it's wrong because, this key take lot of time when our program is large, because compiler compile all libraries in this header file
Thanku bhai❤️
It works, thanks
Thank you so much ☺️
Thanku Bhaiya ji 😇🙏
Tq bro
Ye sahi hai guru 🔥
Yai sirf online compilers k liay hai?visual studio p work kry ga?
working😌
Thanks very much I always forgot name of 3-4 header files when I do coding
Hi bro
@@sharathkumarlingala8463 hi
Thanks bro 😊
ek no. bhai
This is generally bad practice but for competitive programming this should be very helpful.
MOM
Or simply ek file mein sare module ko input karo aur usko use karo.
This seems better, also for more tips check this czcams.com/users/shortsk90VjT1DwRo?feature=share
Taknkque for information
Matlab ye trick bohoth competitive shows me dekhai gayie he par when i used this i was developing a bad habbit of shortcuts but yes useful knowing this
Is this entire playlist enough for both CP and DSA for internship and placements?? Plz do tell.
Thanks bro
Wow nice sir😊😊😊
Ikr,but thanks for sharing cause it's really helpful
Background 🎶 music name
Sahi bro hum bhi coding karte c++
Hey brother if you have time checkout this channel
czcams.com/channels/nNEinYj4utpYpvC5wwydXw.html
But it's increase the overall runtime of the program
NO it doesn't, it just increases the compile time not run time. and compile time doesn't matter in CP
@@iamluv 👍👍
Bro yaar c++ ki aisi tutorial banao jisme kuch naye method batao jaise is video me bataya
Thank you Sir
Really helpful
kya ye offline compiler b support krte h? kya time ya memory complexity m is se kuch load aayega?
Legends already know about it❤️
Thanks for information
Bhai, Background music🎶 name Kya Hain.. Please🙏
Thanks bro.
bro math.h shouldn't be used in c++😅....cmath is the correct way to go....i am not saying this the nptel professor said so...using .h might not give an error but should be avoided in c++
its not the case actually. Even i am not sure in deep but he might have said it because .h is backward compatibility with c and is depreciated. But i don't see it making any harm. Anyway point of video is not math.h, its just and example point is to make aware about bits/stdc++.h.
You can read further here : stackoverflow.com/questions/10694255/cmath-vs-math-h-and-similar-c-prefixed-vs-h-extension-headers
Thank you so much brother
Which compiler ? Plz help ?
luv sir !! hackson bhai kitnay years के hai reply me?
Aisa hi video mere pass aye
Op but full screen nahi dikh rehi
Sir most defical course 🥹
Bro aap ye coding kis software me karte ho
Thanks 😊
All programming language, software in ke bare mai batao
Helpful 👍🔥
is there a single header file for C ?
no
@@iamluv ☹️
Will it have any effect on the memory in compile time?
Is this only for C++ ? Then what's we used in C