Learn C++ With Me #7 - Logical Operators (And, Or and Not)

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 43

  • @vinaykjain451
    @vinaykjain451 3 роки тому +31

    for this you can also use the keywords "and" ,"or" ,"not
    "

    • @Phantom-fi8sc
      @Phantom-fi8sc 3 роки тому

      Agreed

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

      @Ishaan Curtis Yea, I've been watching on Kaldrostream for months myself :)

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

      @Ishaan Curtis yup, have been watching on KaldroStream for months myself :)

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

      @Ishaan Curtis yup, been watching on kaldrostream for years myself =)

  • @sonnyornido1643
    @sonnyornido1643 3 роки тому +7

    Thank You Tim!
    you're so good at simplifying and explaining things that's why I chose to watch your tutorials.
    Congrats 600k subs!🎉

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

    Your videos are straight forward and inspiring, I could not thank you more.
    -Isaac
    I messaged your staff on discord so then they could tell you that, but I figured since I am already in the midst of taking your crash course that I will tell you in the comment section.
    Please like the comment if you have read so I know that you know your supporters really love your inspiring content.

  • @srujanraj9489
    @srujanraj9489 3 місяці тому

    Excellent lesson! I do have one suggestion tho. For people who are learning this from scratch, you could've added how "and" and "or" are the logical equivalents of multiplication and addition, since true and false is 1 and 0. This really helped me out when I first learnt this, so I thought it would be worthwhile sharing it. :)

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

    Nice video! Also, will there be a final project? I would love to see that. 😀

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

    post fasteeeer !
    I crave for this series

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

    Thanks, Tim this helped me a lot!!!! ❤

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

    Hi Tim, man how do you organize your time to be that productive? This C++ series is fascinating...Would it be possible to have a similar series on MATLAB..thank you kindly

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

    Will you cover short-circuit evaluation in a future video? It's a very useful thing to take advantage of for more complicated conditions.

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

    yesssir i was waiting on this! please don't stop this

  • @Phantom-fi8sc
    @Phantom-fi8sc 3 роки тому +6

    7:58 is basically De Morgan's double complement law

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

      thats exactly what came to mind when i saw that

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

    Great mate...we also looking forward to some Rust videos as well.

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

    Congrats 600k subs. 🎉🎊

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

    congratulations for 600K subcribers, soon you will reach 1 million.

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

    Might be good to mention the order of operations for boolean expressions as well:
    1. Not (!)
    2. And (&&)
    3. Or (||)
    For example:
    true || true && false true || (true && false) true || false true
    If you did not know this and started evaluating the expression from left to right, you would get an incorrect answer:
    true || true && false --> (true || true) && false --> true && false --> false

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

      @Peterolen Yes, most people but I thought I would mention it since this is a tutorial series for beginners 😊

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

    I hit the like button 3 seconds after the video started

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

    I like to the think of the not (!) operator as an operator that checks if a condition is not true and then returns a boolean. Because if all an operator does is reverse a boolean, people wouldn't understand why they would need to use it.

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

    Thank you bro. This is a good post! Do you think I should be learn C++? I know Python and JS. I like web design and mobile app development. What does C++ for me? Mobile or web?

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

      system programming

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

      @@nikhilt3755 Thank you bro. I will try it :)

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

    Hey Tim , won't you celebrate for reaching 600 K subs , ✌🏻✌🏻✌🏻

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

    Just reliazed 600K
    Congo...

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

    This is like when the kids used to say are you not not not not not not liking that.

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

    How are you learning this language? I mean docs

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

    and btw, pls use sublime's build system to build. this way, it is such a time waste

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

    Video Idea:
    Pytorch tutorial

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

    \
    _this is the forward slash here right above the enter key_
    you heard it here first boiz

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

    where is the xor operator?

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

      The XOR operator (^) is mainly used for bitwise operations.
      For boolean expressions the "not equal to" operator (!=) serves the same purpose as XOR for a boolean expressions. This because != only returns true if and only if one of the operands is equal to true; which is the definition of XOR
      true != true --> false
      false != true --> true
      true != false --> true
      false != false --> false

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

      this is bitwise operator or comes in bitwise operator's category

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

    man can you just donate/purchase sublime text to help his developers ? you use it since your first video and you have now like 600k subscribes I'm sure you gain some money out of it, you can't donate a little bit ?

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

      Good reminder! I will donate/purchase it right now :)

  • @alfkh
    @alfkh 11 місяців тому

    whats an xor? i often have to be so explicit to my friends that i can meet you on tue XOR thur. They say okay, i'll meet u on tue. On tue, i wait for them & they don't show up. When i call them they tell me, but you can also make thur, right? the ans is no, bec u said meet on tue, i lined up something else for myself on thur. Therefore i shd hv made it explicit, tue XOR thur! in fact, i do that to my friends now.. & those who used 2 do that to me, well, they r no longer my friends!

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

    Never trust a programmer who says he knows C++