C++ Control Structures, If Else and Switch-Case Statement | C++ Tutorials for Beginners #9

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • Download the best IDE for C, C# and C++: bit.ly/WholeTo...
    ►Source Code & Resources: codewithharry....
    ►This video is a part of my C++ playlist: • C++ Tutorials In Hindi
    ►For Doubt Solving, Brain Storming Sessions & guaranteed replies, join the channel membership here: / @codewithharry
    ►Click here to subscribe - / @codewithharry
    ►Checkout my English channel here: / programmingwithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Python Tutorial In Hin...
    ►Python Complete Course In Hindi - • Python Tutorials For A...
    ►C Language Complete Course In Hindi -
    • C Language Tutorials I...
    ►JavaScript Complete Course In Hindi -
    • JavaScript Tutorials I...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Django Complete Course In Hindi -
    • Python Django Tutorial...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithhar...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

КОМЕНТАРІ • 538

  • @CodeWithHarry
    @CodeWithHarry  4 роки тому +624

    MINOR CORRECTION: It might be obvious but at around 7:00, I mistakenly said in flow that 0, 1 and 2 will be printed but only 0 will be printed since the if statement will execute only once!
    I hope you are enjoying the course!

  • @wasiqazmi1528
    @wasiqazmi1528 2 роки тому +161

    harry 20 min videos is more helpful for me than a 90 min class and 3 hours lab in college.

  • @suyashbansal4275
    @suyashbansal4275 Рік тому +26

    from start of this video to end of playlist only 17 hours, 15 minutes, and 58 seconds are left which is approx(3/4) of one day means you can also do it in a day , if you binge watch. It is just a motivation that 70 videos looks very scary but it is not. if you watch 3 videos a day you can complete C++ in just two weeks. I also lost control of this and thinked how long it will take but take it as a motivation guys 😌😌

  • @asisarora04
    @asisarora04 4 роки тому +196

    Thanksss a Lott bro I am studying in canada now and ur videos r making it lot easier ❤️❤️

    • @CodeWithHarry
      @CodeWithHarry  4 роки тому +94

      I am glad I could help Asis :)

    • @shuvamsarkar9086
      @shuvamsarkar9086 4 роки тому +5

      Harry bro thanks a lot 🙏

    • @vedantmatanhelia1016
      @vedantmatanhelia1016 3 роки тому +3

      @@bhavyanavyadancechannel8276 you can take a course in unreal engine

    • @zombiekiller7101
      @zombiekiller7101 3 роки тому +2

      @@bhavyanavyadancechannel8276 use c#

    • @sanjanagupta231
      @sanjanagupta231 3 роки тому +4

      @@moneyheist9352 Humans are not machines. Maybe he had learnt some other language and shifting to c++. Think twice before you write on UA-cam.

  • @vs.7201
    @vs.7201 4 роки тому +13

    Thanks bro aapki vajah se mere ko java script ka saara concept pta chl gyea mein software engineering kr rha hu university of calgary(Canada) so sometimes unki language mein difficult si lgdi hai programming lekin apne boht ache se smajeya mere thanks a lot sir😍

  • @oldsongshindi2050
    @oldsongshindi2050 Рік тому +8

    Harry ki 20-30 minute ki vadio bahut hi useful hai hamare 2.5 hours ke lab se thanks dear

  • @jatzsenpai7177
    @jatzsenpai7177 2 роки тому +83

    Save this teacher at any cost he is the reason programming society is still alive

  • @dotmashrc
    @dotmashrc 3 роки тому +20

    i found your classes better than most other free class channels as you explain a lot more.

  • @syedharis2973
    @syedharis2973 3 роки тому +27

    i wish you were professor in my Uni.... lots of students wouldve love you.... not every PHD can teach, thats for sure

  • @atifmalik8012
    @atifmalik8012 2 місяці тому +1

    In cpp there are three types of control structure
    1. Sequence structure
    2.selection
    3.loop
    Sequence structure is used to Execute statement in Sequence they are written
    Selection structure has three types if statement else if ladder switch statement
    In switch statement if break is not used then if one case is satisfied then after that all statement will be executed

  • @ketanmahandule3193
    @ketanmahandule3193 4 роки тому +54

    Thanks for this course, Harry SIr! I can't thank you enough for this course & the new course on Data Structures and Algorithms. Keep up the good work!

  • @daipayandas7723
    @daipayandas7723 4 роки тому +10

    Thanks Harry bhai....you teaching lot of thing than college's class🔥🔥❤️

  • @sonugoutam1648
    @sonugoutam1648 4 роки тому +9

    Thanks....You so much...Sir hi...🙏🏻🙏🏻God bless you..🙏🏻🙏🏻

  • @SachinSharma-po3nl
    @SachinSharma-po3nl 3 роки тому +8

    thanks a lot sir! great source of knowledge available free.

  • @shahzadkhan9022
    @shahzadkhan9022 3 роки тому +8

    Thank You SIR G we really enjoy and learn from your lectures

  • @shamikachalse2368
    @shamikachalse2368 4 роки тому +22

    Thanks for all the videos my basics are seriously getting cleared ,please upload the complete c++ language videos it would be our pleasure to get the complete c++ language learned form u sir .

  • @redoxrikon2722
    @redoxrikon2722 4 роки тому +38

    Sir pls start artificial intelligence.

    • @Jather
      @Jather Рік тому +1

      😂bhai आप bhi khud kuch karo

    • @rishichaudhary7966
      @rishichaudhary7966 Рік тому +9

      ​@@Jatherbhai ab tak toh inn bhai ka job lag gyi hogi 😮

  • @haseebmalik1914
    @haseebmalik1914 2 роки тому +9

    better than my whole semester

    • @Noor-dua
      @Noor-dua Рік тому +1

      What you are studing?

  • @storyspace2.0
    @storyspace2.0 3 роки тому +17

    Harry sir thank you sooo much
    Your videos are so helpful for coding, I completed c from your videos and now I started c++ it's too easyy to understand 😊

  • @aakashkadam2937
    @aakashkadam2937 2 роки тому +15

    i have started learning c++ with aman dhatarwal but i discontinue due to not understandable
    and started following your lecture
    thank you sir

    • @sarthak3156
      @sarthak3156 2 роки тому +1

      aman bhaiya ka course jayada fast hai according to me

    • @silverpenetrator739
      @silverpenetrator739 2 роки тому +3

      Lol we are in the same boat. I shifted to this course and I'm really happy with it.

    • @silverpenetrator739
      @silverpenetrator739 2 роки тому +1

      @@sarthak3156 Because wo placement prep ke liye banaya hai.

    • @codingriovo631
      @codingriovo631 2 роки тому

      @@silverpenetrator739 Hello, I wanted to know how are you doing wrt coding and stuff right now, is that fine if I ask?

  • @RAHUL-b5p
    @RAHUL-b5p Місяць тому +1

    wow it is a fantastic lecture. you are the great harry bhai!!!!

  • @bint-e-riaz4457
    @bint-e-riaz4457 3 роки тому +14

    Thank You SIR G we really enjoy and learn from your lectures
    Kindly complete this course.

  • @Shalini371
    @Shalini371 5 місяців тому +1

    #include
    using namespace std;
    Int main(){
    for(int=i; i

  • @sudhanshumehta2844
    @sudhanshumehta2844 3 роки тому +8

    This is literally a great source of knowledge available free.

  • @sunidhimonga7219
    @sunidhimonga7219 4 роки тому +4

    awesome videos bhaiya...very helpful!

  • @BlackScreenProductions
    @BlackScreenProductions 2 роки тому +5

    Write a C ++ Program. We have a day-to-day record of USD price in PKR for last 100 weeks. Find the week, which has a highest variation in PKR, while a base price is 160Rs = 1 USD. Also, find which week has the highest average USDprice
    Sir Please Solve The Problem

  • @masfiktalukdar4006
    @masfiktalukdar4006 3 роки тому +5

    just a gorgeous and helpful course

  • @neetusahu2256
    @neetusahu2256 3 роки тому +4

    Thank you so much bhaiya ...helped a lott🥰🥰🤗🤗🤗😍

  • @anant-strong
    @anant-strong 4 роки тому +77

    Please make detailed course on Data Structures and Algorithm those who want this please comment 🙏

  • @vikashgautam2247
    @vikashgautam2247 4 роки тому +8

    You give quality videos, Sir.

  • @8_abhimanyuchoudhary223
    @8_abhimanyuchoudhary223 3 роки тому +1

    thankyou sir your tutorial is free of cost and very helful hai iskeliye

  • @amarnathghosh2722
    @amarnathghosh2722 Рік тому +1

    ek hi dil hai harry sir kitne bar jitoge
    you are a part of god . keep teaching and we all love you

  • @MandipKumar
    @MandipKumar Рік тому +3

    Bahut badhiya Harry bhai

  • @debasishborah7059
    @debasishborah7059 3 роки тому +2

    Thanks Harry Bhai

  • @rishabhgarg1445
    @rishabhgarg1445 4 роки тому +22

    Sir there is a mistake in the video...while giving the example for the if-else statement at around 7:00 you said that it will print 0,1,2...but if-else executes only one time so it will print only 0 on screen.

    • @naman1312
      @naman1312 Рік тому

      yes, I also thaught that!

    • @subhamadhikari2445
      @subhamadhikari2445 Рік тому

      well, yes that is a mistake rather it is an example of loop

  • @ashishchaudhary8137
    @ashishchaudhary8137 3 роки тому +3

    Super video! I applauded for ₹40.00 👏

  • @hitarthpatel1621
    @hitarthpatel1621 3 роки тому +2

    Thankyou for giving me such a good content

    • @parzyst6282
      @parzyst6282 3 роки тому

      bhai 4:59 sec pe jo smjhaya smjh nhi aya thoda smjhayega ?

  • @sasmitnalkande1545
    @sasmitnalkande1545 4 роки тому +2

    than you bhai for providing free knowledge

  • @SocraticReflections
    @SocraticReflections Місяць тому +4

    A mini Calculator using the if - else statements :
    #include
    using namespace std;
    int main () {
    int num1,num2;
    double sum ;
    int addtype ;
    cout

  • @spomod
    @spomod 3 роки тому +2

    great work sir thanks a lot

  • @Yama-D-Zeal
    @Yama-D-Zeal Рік тому +11

    Bro practice ke liye koi excercise bhi dal do🗿

  • @johnmarshallyt
    @johnmarshallyt 4 роки тому +17

    Instant click on the notification😎😎😎😎

  • @someshsahu4638
    @someshsahu4638 3 роки тому +3

    Excellent tutorial thankyou 🙏

  • @_abhaythakur3009
    @_abhaythakur3009 9 днів тому

    bhut ache se padhate ho.....

  • @SriNidheeshSangamkar
    @SriNidheeshSangamkar Рік тому +2

    Sir iam studying in 11th now and your course will be soo useful till start of engineering

  • @asadtariq8754
    @asadtariq8754 3 місяці тому +1

    Better than 3 hours class of programming.........

  • @mdshadan-7312
    @mdshadan-7312 4 роки тому +2

    Sir thank you very very much

  • @Jaimaavarahi
    @Jaimaavarahi 3 роки тому +1

    Thankq Soo much ❣️🙏

    • @parzyst6282
      @parzyst6282 3 роки тому +1

      bhai 4:59 sec pe jo smjhaya smjh nhi aya thoda smjhayega ?

  • @rajanijaiswal333
    @rajanijaiswal333 4 роки тому +2

    Thank you harry bhai
    nice video

  • @vishwajeetkumarsingh4818
    @vishwajeetkumarsingh4818 4 роки тому +2

    Superb teaching skills

  • @Face_the_Reality
    @Face_the_Reality 2 роки тому +2

    Else if-else statement and switch case programs are kind of same, right? What’s the difference in their functioning?

    • @Face_the_Reality
      @Face_the_Reality 2 роки тому +1

      @@priyanshukumar6635 else if-else me false hone pr exit to nahi karta
      Is video mein jab aap 50 age enter karo ge to wo pehli condition check kare ga, wo false hojay gi phir second condition check kare ga, wo bhi false hojay gi
      And third condition bhi false hojay gi
      At last, else ki waja se likha aa jay ga
      You can come to the party
      Abhi bhi difference nahi pta chala

    • @LUCKY-iq5cp
      @LUCKY-iq5cp 2 роки тому

      The only difference is that in else if-else we can use logical operators but in switch case we cannot use logical operators............that is it

  • @yasmeenhanif2218
    @yasmeenhanif2218 3 роки тому +1

    Thanks alot sir

  • @shravanpanchal8920
    @shravanpanchal8920 3 роки тому +3

    Sir actually a question arised in my mind that cna a switch case statement be used inside the case of a initial switch case statement

  • @zohaibashraf2259
    @zohaibashraf2259 2 місяці тому

    You are great style to teaching. Thank you sir

  • @ashishchaudhary8137
    @ashishchaudhary8137 3 роки тому +1

    your video is amazing,

  • @ShubhamKumar-pg9wh
    @ShubhamKumar-pg9wh 2 роки тому +4

    Sir your video is really so good and so understandable.
    I am facing one problem in VS code . When program is unsaved ,program runs but when i save this , program exit. How do i mend it??

  • @rajatraut9345
    @rajatraut9345 Рік тому +1

    Thank bhaiya I am enjoying your lectures 💯👌

  • @AmanSingh-rz1rj
    @AmanSingh-rz1rj 3 роки тому

    There is best learing youtube chanel thnxxx you so much

  • @aakashpuri728
    @aakashpuri728 3 роки тому +1

    thanks sir ji for amezing video god based you

  • @engineerbhai7642
    @engineerbhai7642 4 роки тому +3

    Top class tutorial.

  • @rushikeshmantri3061
    @rushikeshmantri3061 3 роки тому +1

    Hats off to your Efforts....

  • @shivamrai5235
    @shivamrai5235 3 роки тому +1

    Thanks bhaiya your explanation has better understanding ❤️

  • @CAZ953
    @CAZ953 Рік тому +1

    The C++ Control Structurea are:
    1) Sequence Structure.
    2) Selection or Iteration Structure.
    3) Repetition or Repetitive Structure.
    Note:
    It is not Loop Structure as In Repetitive or Repetition Structure it has a lot of branches including Loops and Switches and If else statement.
    2:35

  • @danishgujjar7477
    @danishgujjar7477 Рік тому +1

    Thnks for ur my uni teacher didn't clear my concepts in 1 hour lecture, but your 20 min vedio is inuf ❤ 🇵🇰❤️

  • @technicaltechji5140
    @technicaltechji5140 2 роки тому +2

    Hay I am 13 and if have written if elseif and else statement and there was no error, i have made a calculator also by watching your titoriol

  • @uffffff5116
    @uffffff5116 3 роки тому +2

    To be very frank really interesting course

    • @parzyst6282
      @parzyst6282 3 роки тому

      bhai 4:59 sec pe jo smjhaya smjh nhi aya thoda smjhayega ?

  • @Nahhh4305
    @Nahhh4305 3 роки тому +1

    Thanks Teacher..😊😊

  • @KEERahul
    @KEERahul 3 роки тому +1

    u are doing great work sir

  • @apurvasonawane5049
    @apurvasonawane5049 3 роки тому +1

    Thank you Harry bhai! 🔥😊

  • @aashitAgrawal
    @aashitAgrawal 3 роки тому

    Thanksss a Lott bro

  • @Rahulkumar-op9lu
    @Rahulkumar-op9lu 4 роки тому +1

    Thanks harry bhai....for this lovely way explanation..😍😍

  • @UECAshutoshKumar
    @UECAshutoshKumar 2 роки тому +1

    Thank you bhaiya ❤️

  • @MULTIPLEXER_ENCODER
    @MULTIPLEXER_ENCODER Рік тому +24

    "you are not born yet" lol

  • @itzheavem4451
    @itzheavem4451 4 роки тому +3

    keep it up 👍

  • @aryanpatani3468
    @aryanpatani3468 3 роки тому +5

    his ending theme sounds better at 1.5x speed.23:07

  • @nighatshafi6139
    @nighatshafi6139 4 роки тому +1

    Thank you so much sir 👌👌👌👌👌👌👌👌👌👌👌👌👌

  • @sbanduri
    @sbanduri 4 роки тому +1

    harry bhai apka course abtak follow karke me ek calcuator bana raha hoon par ap pls bata do ki kaise ye error fix kare: comparison between pointer and integer ('char' and
    'const char *')

  • @tejasahile7832
    @tejasahile7832 Рік тому +2

    Thnx Sir for such great content 🔥❤️

  • @SumitThakur-hv9ec
    @SumitThakur-hv9ec 2 роки тому +1

    Thank you ❣️

  • @nihalgupta2389
    @nihalgupta2389 3 роки тому

    I am on day 9
    I have understood all you code
    Thank you

    • @parzyst6282
      @parzyst6282 3 роки тому

      bhai 4:59 sec pe jo smjhaya smjh nhi aya thoda smjhayega ?

  • @friday077
    @friday077 2 роки тому +1

    Thanks broo iam studying in london, your videos are very helpful and make easy to learning c++ Love u bro💞💞💞
    Jay Hind 🇮🇳❤

    • @manjeet3244
      @manjeet3244 2 роки тому

      Love from India Bhai 🥰😂😂
      Jai hind 🇮🇳

  • @naturetime781
    @naturetime781 Рік тому +1

    Level ha brother ap ka

  • @sdptbhattacherjee4
    @sdptbhattacherjee4 4 роки тому +4

    Sir problems and exercises pls.

  • @AnEngineerHuman
    @AnEngineerHuman Рік тому +4

    // Day-08
    // Tutorial_09_Completed_(Thanks_To_cwh)
    // 10-12-2022

  • @somethinginteresting8610
    @somethinginteresting8610 4 роки тому +2

    Thanks bro I am studying from Europe and yor video make easier to me to learn c++

  • @baibhavvarshney5182
    @baibhavvarshney5182 3 роки тому +1

    Really helpful

  • @abhishekshukla9005
    @abhishekshukla9005 3 роки тому

    how calmly you teach sir.tqqqqqqqqqqqqqqqqqqqq

  • @bantonysingh5222
    @bantonysingh5222 2 роки тому

    Thank you bro you are a good person.
    I watching your all coding video and learn easily.
    Thank you
    Thank you so much

  • @shyrashyy9527
    @shyrashyy9527 3 роки тому +1

    great work

  • @zainlala-nn6tx
    @zainlala-nn6tx 9 місяців тому

    Thank you sir your channel prove helpful for all of us may Allah give you success at every walk of life
    You are our respectful teacher because we learn a lot of things from you

  • @RohitSharma-jx8dw
    @RohitSharma-jx8dw 4 роки тому +2

    very very helpful for beginners , thanx bro. very good work .

  • @Sandeepkumar-sd8vu
    @Sandeepkumar-sd8vu 3 роки тому

    yesa video ko koi dislike kar hi nai sakta
    very very imformative video

  • @Nitrox_edits
    @Nitrox_edits 4 місяці тому

    Sir you are the goat 🗣️🗣️

  • @ritwikthakur2960
    @ritwikthakur2960 3 роки тому +2

    thanks for clearing my doubts.

  • @mrpractise-pl4wb
    @mrpractise-pl4wb Рік тому

    harry you are a champion yar ... zaberdast yar
    GOD BLESS YOU

  • @vishwajeetkumarsingh4818
    @vishwajeetkumarsingh4818 4 роки тому +1

    Great bro

  • @daipayandas7723
    @daipayandas7723 4 роки тому

    Aap mere real teacher hoo

  • @IkramUllah-uh1xz
    @IkramUllah-uh1xz 2 роки тому

    Thank you so much harry bhai your videos are really helpful

  • @Manishsharma123
    @Manishsharma123 2 роки тому

    Dhanyawad bahi

  • @jahidmamud2494
    @jahidmamud2494 2 роки тому +1

    Op sirr !!