Replace all HEADER FIlES with one SINGLE HEADER FILE in C++ | Coding Tips

Sdílet
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...

Komentáře • 586

  • @iamluv
    @iamluv  Před 3 lety +78

    FREE COMPETITIVE PROGRAMMING COURSE PLAYLIST : czcams.com/play/PLauivoElc3ggagradg8MfOZreCMmXMmJ-.html
    CONNECT ON INSTAGRAM : instagram.com/i._m_.luv/

  • @ojouniisama5401
    @ojouniisama5401 Před 3 lety +822

    This is generally bad practice but for competitive programming this should be very helpful.

    • @vishnusingh4118
      @vishnusingh4118 Před 3 lety +32

      Why is bad practice though?

    • @user-ez8tr7qq1t
      @user-ez8tr7qq1t Před 3 lety +60

      @@vishnusingh4118takes more compilation time

    • @anowarabegum4660
      @anowarabegum4660 Před 3 lety +40

      @@vishnusingh4118 isn't it obvious, you are taking in so much more files you don't need and including them in your binary

    • @sidheshwartiwari9834
      @sidheshwartiwari9834 Před 3 lety +14

      @@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)

    • @AshwaniKumar-ze5eb
      @AshwaniKumar-ze5eb Před 3 lety +9

      @@sidheshwartiwari9834 No

  • @pianoguy5110
    @pianoguy5110 Před 3 lety +450

    I don't know anything about coding
    Still I am watching because it looks intresting 😂

    • @bhargavtiwari9058
      @bhargavtiwari9058 Před 3 lety +37

      You should learn this is very interesting I love coding it is our future we use coding too improve A I

    • @pianoguy5110
      @pianoguy5110 Před 3 lety +6

      @@bhargavtiwari9058 Wow , Sounds great 🤩

    • @bhargavtiwari9058
      @bhargavtiwari9058 Před 3 lety +5

      @@pianoguy5110 thanks bro sorry for late reply

    • @dracoarmyff9126
      @dracoarmyff9126 Před 3 lety +8

      Same bro i am 14 years old and im a beginner

    • @opgamer-uq9vm
      @opgamer-uq9vm Před 3 lety +6

      @@dracoarmyff9126 I am also 14 but I know much about code😁

  • @fr.faraz_
    @fr.faraz_ Před 2 lety +44

    I didn't understand anything but still I watched till end 😂😂
    I don't know why

  • @preritvishal
    @preritvishal Před 3 lety +135

    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

    • @iamluv
      @iamluv  Před 3 lety +77

      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.

    • @shubhamgour7807
      @shubhamgour7807 Před 3 lety +4

      It is worth full in online practice

    • @amiyahazarika1058
      @amiyahazarika1058 Před 3 lety

      Op

    • @devanarayanababu1996
      @devanarayanababu1996 Před 3 lety

      Thank you for bringing that to out attention

    • @AmanKumarSinhaOfficial
      @AmanKumarSinhaOfficial Před 3 lety

      @@iamluv Yeah kaun sa app use kr rahe ho aap coding ke liye...

  • @abhijeetdas2919
    @abhijeetdas2919 Před 3 lety +139

    if I use that in college lab, sir will beat me up😂
    still thanks for sharing, I'll try while practicing for competitive programming 👍🏻

    • @flashbao1922
      @flashbao1922 Před 3 lety +12

      i got that beating already!

    • @abhijeetdas2919
      @abhijeetdas2919 Před 3 lety +4

      @@flashbao1922 😂👍🏻

    • @sovereignboss1841
      @sovereignboss1841 Před 3 lety +4

      Why you got beating?

    • @raajkumar6724
      @raajkumar6724 Před 3 lety +12

      @@sovereignboss1841 cuz Teachers never like shortcuts. They need the exact answer which is in book. ✌️

    • @borgir6368
      @borgir6368 Před 2 lety +2

      @@sovereignboss1841 cuz it is a bad practice

  • @abhisheksingal4352
    @abhisheksingal4352 Před 2 lety +1

    This will increase the exe file size & compilation time
    C++ without a bunch of statements is doesn't seem complete

    • @stratonov16
      @stratonov16 Před 2 lety

      czcams.com/users/shortsk90VjT1DwRo?feature=share

  • @abhaytiwari6411
    @abhaytiwari6411 Před 3 lety +30

    i LIKE THIS TYPE OF TRICK

  • @jamescrone1588
    @jamescrone1588 Před 3 lety +7

    Brooo no way. You are a legend

  • @saadzafar4663
    @saadzafar4663 Před 3 lety +1

    Great bro aese he tricks banaty raho status se dekhi video bht kamaal ka kaam ker rahy ho😉
    Subscribed 👌

  • @moirangthemrohit9069
    @moirangthemrohit9069 Před 3 lety +2

    You dont know how much you help me i owe you bro thanks

  • @VersyPlay
    @VersyPlay Před 3 lety +1

    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 .

  • @ruchitakachhap4162
    @ruchitakachhap4162 Před 3 lety +7

    Thank you, these videos are helpful!

  • @taured_gamez
    @taured_gamez Před rokem +2

    I like your video for save 😁😁

  • @MaheshSaud-ou1qw
    @MaheshSaud-ou1qw Před rokem

    #include

  • @malavshah3150
    @malavshah3150 Před 3 lety +1

    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..👍

  • @inflxccss
    @inflxccss Před 2 lety +2

    Thanx for this kind information sir 🙂

  • @sumanto_pal
    @sumanto_pal Před 3 lety +85

    this increases compilation time by 2 to 3 seconds

    • @iamluv
      @iamluv  Před 3 lety +93

      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.

    • @sumanto_pal
      @sumanto_pal Před 3 lety +14

      @@iamluv My PC is slow then LOL

    • @kg3217
      @kg3217 Před 3 lety +4

      @@sumanto_pal sayad aapko apna comment edit kardena chahiye, kyunki it is not true for single file on most pc

    • @sureshrathod7103
      @sureshrathod7103 Před rokem

      ​@@iamluvBhai luv bhai ke vs code ke output me Jo time dikha raga he
      Vo kaise aata he plz batado

    • @theprnvanand
      @theprnvanand Před rokem

      ​@@sureshrathod7103Use sublime text

  • @max_ishere
    @max_ishere Před 2 lety

    Wow first time in actually understood Indian accent and it was actually helpful!

  • @notvoidz
    @notvoidz Před 3 lety +9

    Hey sublime setup video maybe??

    • @iamluv
      @iamluv  Před 3 lety

      Edit : watch this for setup -> czcams.com/video/Zlx7gmt3lBU/video.html

    • @puneetsingh9678
      @puneetsingh9678 Před 3 lety

      @@iamluv ha bro setup vala video badhiya rhega

    • @alitheia8684
      @alitheia8684 Před 3 lety

      Visual studio

  • @Hyperskullgamer
    @Hyperskullgamer Před 2 lety

    I am a beginner and i am glad to watch this short

  • @buddhadebbairagi2022
    @buddhadebbairagi2022 Před 3 lety +2

    Thanks bro, it was really help full.🙂

  • @Satya_vichar_123
    @Satya_vichar_123 Před 3 lety +10

    Library is One man army itself 😂

  • @umesh9629
    @umesh9629 Před 3 lety +1

    I have learnt a new thing today

  • @billionairesayss
    @billionairesayss Před 2 lety +1

    Great tip thanks man🔥

  • @yogeshdharya3857
    @yogeshdharya3857 Před 2 lety

    Bhai thanx yrr.Iski bahut zyada zaroorat thi

  • @umeshchandrakotamraju4371
    @umeshchandrakotamraju4371 Před 3 lety +20

    So, you'll convert c++ into python partially?

  • @shubhamshingare1426
    @shubhamshingare1426 Před 2 lety

    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.

  • @shubhamsinha7762
    @shubhamsinha7762 Před rokem

    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

  • @atharva.upadhyay
    @atharva.upadhyay Před 3 lety +1

    Thanks It Helped 😊😊

  • @nehaqureshi2071
    @nehaqureshi2071 Před 2 lety

    This is very helpful for competitive exam

  • @gbbz5521
    @gbbz5521 Před 3 lety +19

    The thing I miss the most in mac

    • @iamluv
      @iamluv  Před 3 lety +13

      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

    • @gbbz5521
      @gbbz5521 Před 3 lety +1

      @@iamluv wow, I didn’t know that. Thanks

    • @zzzgaming1341
      @zzzgaming1341 Před 2 lety

      @@iamluv bro can i get your contact

    • @zzzgaming1341
      @zzzgaming1341 Před 2 lety +1

      @@iamluv need some help

  • @mahivishwakarma7013
    @mahivishwakarma7013 Před 2 lety +1

    Amazing trick 👍🏻

  • @soumyadipbanerjee5726
    @soumyadipbanerjee5726 Před 3 lety +1

    Great information bro...thank you ❤❤❤🔥

  • @mohtashimali6347
    @mohtashimali6347 Před 2 lety

    This helped me in my viva today

  • @manaspatil4316
    @manaspatil4316 Před 2 lety +2

    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 ??

    • @iamluv
      @iamluv  Před 2 lety +3

      No

    • @mrknight7979
      @mrknight7979 Před 2 lety

      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 🥺😥😥😥😥

    • @hemangshrivastava9561
      @hemangshrivastava9561 Před 2 lety

      @@mrknight7979 Try mobile OTP method.

  • @_tanujpokhriyal
    @_tanujpokhriyal Před 3 lety +1

    Wow thanks bhaiya

  • @SOLOMON-ALEXANDER
    @SOLOMON-ALEXANDER Před 3 lety +1

    Ye sahi hai bro🔥💪errors se parashan hu me

  • @xb05meezanansari58
    @xb05meezanansari58 Před rokem

    This helps a lot

  • @Abhishek.Rana.
    @Abhishek.Rana. Před 3 lety

    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

    • @iamluv
      @iamluv  Před 3 lety

      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.

  • @ayushgautam9188
    @ayushgautam9188 Před rokem

    can you please also make one video for java also....

  • @kingpaimon6086
    @kingpaimon6086 Před 3 lety

    This is good and helpful advice.

  • @GamingTuberX
    @GamingTuberX Před 3 lety

    Very helpful ☺️
    Thanks 👍

  • @rammalla7716
    @rammalla7716 Před 3 lety +2

    Better than white hat jr 👍👍🔥

  • @user-ic4gp6mx7h
    @user-ic4gp6mx7h Před rokem

    Good and God bless you

  • @pratibhakewat7077
    @pratibhakewat7077 Před 2 lety

    thank u so much sir ji...great helpful.vedio...& u r knowledgeable person...your knowledge is very greatful...& helpful for me.& my study..

  • @abhijitphadatare-jl5ti

    Thank you bro it was soooooooooooooooooooo helpful😢😢😢😢😢😢

  • @vaibhavbhatnagar3739
    @vaibhavbhatnagar3739 Před 3 lety +1

    Very nice

  • @jacknarzary4453
    @jacknarzary4453 Před 3 lety +5

    System ("cls");
    Sleep function is not working in this header file

    • @tushargupta5805
      @tushargupta5805 Před 3 lety +1

      cause in competitive programming we don't use System functions and this header is strictly for competitive programming not for in general

  • @StrogersRogers
    @StrogersRogers Před 3 lety

    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.

    • @iamluv
      @iamluv  Před 3 lety

      it does but it doesnt mattter, in cp runtime matters compile time can be high.

  • @rahulsarkar4530
    @rahulsarkar4530 Před 3 lety

    Great... Now I am your new subscriber

  • @deepkumarbiswas2477
    @deepkumarbiswas2477 Před 2 lety

    #Include
    Next...... Please reply full header code....

  • @stubbornez1273
    @stubbornez1273 Před 2 lety

    SIR CAN YOU PLEASE TELL ME WHICH THEME YOU USING IN VS CODE??❤️LOVE YOUR CONTENT

  • @pratibhakewat7077
    @pratibhakewat7077 Před 2 lety

    Thank u so much sir ji.🙏🙏🙏🙏🙏

  • @anshupandey1782
    @anshupandey1782 Před 3 lety +8

    ----- Kabhi kabhi to Lagta hai Apun ich bhagwaan hai

  • @vishwamshourya3354
    @vishwamshourya3354 Před 2 lety

    Pehle video m hi dhamaka🔥

  • @mahammadzaki3374
    @mahammadzaki3374 Před 2 lety +1

    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

  • @vsmemegenix3512
    @vsmemegenix3512 Před 3 lety +1

    Thanku bhai❤️

  • @varnitpandey338
    @varnitpandey338 Před 2 lety

    It works, thanks

  • @deepanjalisahu4660
    @deepanjalisahu4660 Před 2 lety

    Thank you so much ☺️

  • @narayanchakrawarti3437

    Thanku Bhaiya ji 😇🙏

  • @arvindphulari3244
    @arvindphulari3244 Před rokem +1

    Tq bro

  • @4k45hxd9
    @4k45hxd9 Před 3 lety

    Ye sahi hai guru 🔥

  • @talhasohail2834
    @talhasohail2834 Před 3 lety +1

    Yai sirf online compilers k liay hai?visual studio p work kry ga?

  • @annanverma316
    @annanverma316 Před 3 lety +3

    Thanks very much I always forgot name of 3-4 header files when I do coding

  • @SIRICKYT
    @SIRICKYT Před rokem

    Thanks bro 😊

  • @kabirvibhar
    @kabirvibhar Před rokem

    ek no. bhai

  • @LearnComputerGSCTI
    @LearnComputerGSCTI Před 2 lety

    This is generally bad practice but for competitive programming this should be very helpful.
    MOM

  • @realadityaparida
    @realadityaparida Před 2 lety +1

    Or simply ek file mein sare module ko input karo aur usko use karo.

    • @stratonov16
      @stratonov16 Před 2 lety

      This seems better, also for more tips check this czcams.com/users/shortsk90VjT1DwRo?feature=share

  • @basavarajmeti9435
    @basavarajmeti9435 Před 2 lety

    Taknkque for information

  • @VR1G.
    @VR1G. Před 3 lety +3

    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

  • @shrutiyadav3740
    @shrutiyadav3740 Před 2 lety

    Is this entire playlist enough for both CP and DSA for internship and placements?? Plz do tell.

  • @xb05meezanansari58
    @xb05meezanansari58 Před rokem

    Thanks bro

  • @Nakul_G
    @Nakul_G Před 3 lety

    Wow nice sir😊😊😊

  • @abhijitroy1958
    @abhijitroy1958 Před 3 lety

    Ikr,but thanks for sharing cause it's really helpful

  • @pb0674
    @pb0674 Před 3 lety +7

    Background 🎶 music name

  • @RowdyAnujsitren-
    @RowdyAnujsitren- Před 2 lety

    Sahi bro hum bhi coding karte c++

    • @smartcoding-x4339
      @smartcoding-x4339 Před 2 lety

      Hey brother if you have time checkout this channel
      czcams.com/channels/nNEinYj4utpYpvC5wwydXw.html

  • @yashpalsinghtomar4585
    @yashpalsinghtomar4585 Před 3 lety +2

    But it's increase the overall runtime of the program

    • @iamluv
      @iamluv  Před 3 lety +10

      NO it doesn't, it just increases the compile time not run time. and compile time doesn't matter in CP

    • @nisharahamed8106
      @nisharahamed8106 Před 3 lety

      @@iamluv 👍👍

  • @4k45hxd9
    @4k45hxd9 Před 3 lety

    Bro yaar c++ ki aisi tutorial banao jisme kuch naye method batao jaise is video me bataya

  • @vaibhavshankhwar7016
    @vaibhavshankhwar7016 Před 3 lety

    Thank you Sir

  • @explainedit6614
    @explainedit6614 Před 3 lety

    Really helpful

  • @devanshurawat826
    @devanshurawat826 Před rokem

    kya ye offline compiler b support krte h? kya time ya memory complexity m is se kuch load aayega?

  • @abhaysonwani3314
    @abhaysonwani3314 Před rokem

    Legends already know about it❤️

  • @friendz_gaming
    @friendz_gaming Před 3 lety

    Thanks for information

  • @ajeetnirala2282
    @ajeetnirala2282 Před 3 lety +1

    Bhai, Background music🎶 name Kya Hain.. Please🙏

  • @manavroy7293
    @manavroy7293 Před 2 lety

    Thanks bro.

  • @cenacr007
    @cenacr007 Před 3 lety +3

    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++

    • @iamluv
      @iamluv  Před 3 lety +2

      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

  • @user-cs1in7yy2o
    @user-cs1in7yy2o Před 3 lety +2

    Thank you so much brother

  • @maanav_77
    @maanav_77 Před 3 lety +1

    Which compiler ? Plz help ?

  • @Chirag_ydv_1
    @Chirag_ydv_1 Před rokem

    luv sir !! hackson bhai kitnay years के hai reply me?

  • @Fitness_prince77
    @Fitness_prince77 Před rokem

    Aisa hi video mere pass aye

  • @aritop8782
    @aritop8782 Před 3 lety +3

    Op but full screen nahi dikh rehi

  • @kokborok21
    @kokborok21 Před rokem

    Sir most defical course 🥹

  • @GamingGallery04
    @GamingGallery04 Před 2 lety

    Bro aap ye coding kis software me karte ho

  • @shridebbarman
    @shridebbarman Před 3 lety

    Thanks 😊

  • @HEDDINO9
    @HEDDINO9 Před 2 lety

    All programming language, software in ke bare mai batao

  • @frontendeverything
    @frontendeverything Před 2 lety

    Helpful 👍🔥

  • @venkatamith7267
    @venkatamith7267 Před 3 lety +5

    is there a single header file for C ?

  • @sajaldadhich2743
    @sajaldadhich2743 Před 9 měsíci

    Will it have any effect on the memory in compile time?

  • @shuvamsmishra9365
    @shuvamsmishra9365 Před 3 lety +2

    Is this only for C++ ? Then what's we used in C