C++ FOR BEGINNERS (2025) - Operators in C++ PROGRAMMING TUTORIAL

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • НаукаНаука

Комментарии • 122

  • @CodeBeauty
    @CodeBeauty  3 года назад +17

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.

  • @thorandmoljnir
    @thorandmoljnir 3 года назад +58

    I think the reason you are such a good teacher is you go over everything very meticulously. A lot of teachers skip small things because it is second nature to them and they think they're "obvious", when, as a student, they really aren't. The small details are so important (especially with something as complex as a programming language) and I'm glad you go over them. Excellent work.

  • @beezwiz549
    @beezwiz549 Месяц назад +2

    As someone watching in 2024 I would like to say that this videos are very helpful because they are helping me learn C ++ which is actually my first programming language but I like how Code Beauty does it meticulously WOW!!!!! I'm impressed

  • @juandediosbolivar1140
    @juandediosbolivar1140 3 года назад +4

    I am impressed with the people who watch these videos, they are all very respectful and mature.

    • @CodeBeauty
      @CodeBeauty  3 года назад +1

      I'm very proud to have such appreciative community! Thanks 🤗🤗

  • @MimiMimi-yj4kl
    @MimiMimi-yj4kl 4 года назад +15

    I watched your first 2 videos for beginners, and im really impressed how you explained clearly

  • @antonio6140
    @antonio6140 4 года назад +8

    I'm just starting in computer engineering and your videos have been WAY more helpful than the study book our teacher recommended. Thank you so much!

    • @CodeBeauty
      @CodeBeauty  4 года назад +2

      Happy to help! Good luck with studying ☺️

  • @jannelletalon4018
    @jannelletalon4018 3 года назад +1

    Very clear and easy to understand, not like my previous instructors about programming😂😂. I gave up and shifted to Criminology course and graduated. Need more teachers like you ma'am. God bless and thank you for sharing your knowledge to us.

  • @CONTEMNTheOfficial
    @CONTEMNTheOfficial 5 месяцев назад

    Overall, this is very well explained. The video didn't need to be sped up at all. This is how I define a good teacher.

  • @kukunase1686
    @kukunase1686 Год назад

    I was confused with the whole logical operations and searched for many sites & youtubers.. but you ma'am made is simple to understand

  • @shopping_arcadeshopify6429
    @shopping_arcadeshopify6429 4 года назад +7

    the way of teaching was pretty impressive

  • @themixedherb6578
    @themixedherb6578 3 года назад

    int A = 20 , a ;
    a = A++; // post -increment
    cout

  • @tonywilliams7347
    @tonywilliams7347 3 года назад +2

    thank you for you videos. You are by far the best instructor that I have followed.
    Your presentation is very clear and understandable.
    At about the 9 minute mark when you are showing the post increment I added both statements
    int counter2 = 7;
    cout

    • @tonywilliams7347
      @tonywilliams7347 3 года назад +1

      Sorry, I see that you show that in your next segment.

  • @danieljohncanedacatudio5072
    @danieljohncanedacatudio5072 3 года назад +3

    I hope you still check this to see if I got it all correct. From the time (25:13)
    Here is my answer:
    For line 10: output will be 9
    For line 11: output will be 9
    For line 13: output will be 1
    For line 14: output will be 1
    For line 17: output will be 1
    For line 20: output will be 0
    For line 24: output will be 10
    For line 26: output will be 5

  • @Jitubhaiya2247
    @Jitubhaiya2247 3 года назад

    I am from 🇮🇳(india).I see your all content and I have learnt lot from you. And, I appreciate you for your hard work.

  • @Gojofans7
    @Gojofans7 4 года назад +4

    Your videos are amazing and helpful to me. By watching your videos, I have made so much improvement in myself.

    • @CodeBeauty
      @CodeBeauty  4 года назад +2

      Thank you! Keep learning and I'll keep posting 🤞😊

  • @huzaifagulzar3922
    @huzaifagulzar3922 3 года назад +2

    Tomorrow is my exam and I'm watching your video for revision you clear my all doubts

  • @xav500011
    @xav500011 Год назад

    These are the best programming tutorials on youtube. Well done.

  • @midonediana8127
    @midonediana8127 3 года назад

    Thanks! Your lesson taught me the information i had to learn in half a year

  • @vk2ig
    @vk2ig 3 года назад

    This video is a great refresher on the unary operators (++,--), and assignment operators (+=,-=, etc) for someone like me with a very distant C / C# background but who hasn't coded in those languages for quite a while. Thanks!
    _Edit:_ Subscribed! 😁

  • @Emran_Lakhboly
    @Emran_Lakhboly 4 года назад +1

    This video is very helpful, I really like the way how you explain. I have an exam tomorrow so I am gonna continue watching your videos to get good grades. Thank you so much.

  • @davidemmanuel8600
    @davidemmanuel8600 9 месяцев назад

    Excellent Lecture. Much Love from Nigeria 🇳🇬

  • @yashsonawane905
    @yashsonawane905 3 года назад +1

    Literally, I didn't know how post and pre-increment/decrement stuff work. Two thumbs up for that :)

  • @muhammadfaizankhankhattak5064
    @muhammadfaizankhankhattak5064 4 года назад +2

    i am also c++ beginner and your explanation is very helpful for me .👍❤

  • @catfinity
    @catfinity Год назад

    Great video please keep on making this beginner friendly videos. These are really lifesaver thanks again ❤❤❤

  • @TheJoshuamcgowan
    @TheJoshuamcgowan 2 года назад +1

    If my instructors were all this effective I would have had a 4.0 GPA and graduated with honors 🔥🔥🔥🔥🙏🏽🌺

  • @dangerruss8548
    @dangerruss8548 3 года назад

    finished the laste 5 lastnight; keep it coming YOURE THE BEST

    • @sunilkumar-ft3nk
      @sunilkumar-ft3nk 3 года назад +1

      Can you tell where are the answers to the question which were asked at the last of video ?

  • @painsme2
    @painsme2 3 года назад +1

    I think everyone forgot the lesson at the end of this video so:
    line 10 = 9
    line 11 = 8
    line 13 = true
    line 14 = true
    line 17 = true
    line 20 = true
    line 24 = 10
    line 25 = 4
    Some of these had me mistaken at first glance so that was nice. I was confused by the true/false statements so I had to run those lol.

    • @hey.whoareyou2265
      @hey.whoareyou2265 3 года назад

      Sorry to tell ya but the last one is wrong it's actually 5

    • @painsme2
      @painsme2 3 года назад

      @@hey.whoareyou2265 I guess I forgot we added 2 in previous line oops. lol Plus I don't really feel like you were sorry to tell me I was wrong either lol. Thanks!

    • @thorntontarr2894
      @thorntontarr2894 2 года назад

      Alvis Owens: line 20 is false, I check this by running the actual code. Did you also run the code?

    • @painsme2
      @painsme2 2 года назад

      @@thorntontarr2894 Well I don't remember this anymore and yeah I was probably wrong. If you did and found mistakes that was the point of all this. Cheer's.

  • @JohnathanAlexanderGold
    @JohnathanAlexanderGold 3 года назад +5

    Quick Question, why does "cout

    • @FaithForged
      @FaithForged 3 года назад +1

      @@laskorunningflier4606 Ah, thank you! I get it! Was driving me crazy! lol

  • @edgajr4258
    @edgajr4258 2 года назад

    Well explained. Now need one explaining how to change output text color, font, background color etc

  • @codewithsoma
    @codewithsoma 3 года назад

    Thank for your helpful video, you made me like to write code again thank you so much.

  • @blenderpain8249
    @blenderpain8249 3 года назад +1

    This lesson is by hard the hardest one to grasp compared to all the previous lesson.
    I'm doing the assignment at the end of the video and I have a few questions regarding some questions.
    -1) Why does line 11 result in 9?-
    -I thought pre-decrement is determined with addition resulting in 8.-
    -The first part is '- - a' which is should be 4(?) and the second part '+b' should result in a total of 8 (?).-
    -I know that for post-decrement/increment operators, the result is not shown until you code for it to be shown in another line.-
    -2) Why does line 13 result in 1?-
    -I thought the 'not' operator overrides the statement and is supposed to make the statement false (0). And if that's not true, how do you compare 2 words and not values?-
    -3) Why does line 17 result in 1?-
    -I thought only the first part of the statement is true (1) and the second part of the statement is false (1) which makes the whole statement false (0). Applying the priority rules, the arithmetic operators should be done first, then the relational operators and lastly the logical operators. The first part states that ++x < = 9. Using pre-increment, x will increase from 7 to 8 which makes the result less than 9. This first part true (0). The second part is x+2 >=10. the x value given is 7 which becomes 9 after you add 2 which is not greater or equal to 10. So that makes the second part false (0). Then when considering the && operator, this whole statement should be false (0) because only part of the statement is true (1).-

    • @blenderpain8249
      @blenderpain8249 3 года назад +1

      I figured out why the result of line 11 is 9. Initially, I didn't consider that the previous operator for line 10 had already changed the value of 'b' even if the system didn't show when I ran it. The value of b in line 11 is no longer 4 but 5 due to the post-increment operator. Therefore the system would have calculated the result to be 9.
      I read about how '!' operator works and understood where I've gone wrong for 2). The initial statement should have been false (0) because only one part of the statement is supposed to be true but the '!' overrode and reset the statement to true (1).
      I also figured out why line 17 is true instead of false. I made the same mistaken assumption as in line 11. I didn't consider that the value of x would already have been changed in the same line. The value x in the second part of the statement is no longer 7 after the first part of the statement, it is 8. Therefore, making the second part of the statement true and the whole statement true as a whole.

    • @patrickandrews.5
      @patrickandrews.5 Год назад +1

      @@blenderpain8249 thank you so much!

  • @myronthemage3729
    @myronthemage3729 4 года назад +2

    You teach so well.

  • @omaristaitia5628
    @omaristaitia5628 3 года назад

    Very Nice Lesson thank you Saldina !

  • @MP-ii4dt
    @MP-ii4dt 4 года назад +1

    is there a way to enable/disable your cursor in visual studio? mine has disappeared and when I select a line of code I have no idea where in the line my cursor is when editing..
    thanks in advance.

  • @silver6950
    @silver6950 4 года назад +3

    Why does cout

    • @CodeBeauty
      @CodeBeauty  4 года назад +10

      You are asking about this ↓
      int a = 5, b = 4;
      cout

    • @silver6950
      @silver6950 4 года назад +1

      @@CodeBeauty thanks, that helped, im also confused with
      int x = 7;
      cout

    • @CodeBeauty
      @CodeBeauty  4 года назад +8

      @@silver6950 ++x changes x on both places, so now your ++x =10
      Because of that, (++x = 10) is going to be (8 = 10) and that is(true && true) which will result as true (You will get 1 written out, because 1 represents true, and 0 is false)

    • @sunilkumar-ft3nk
      @sunilkumar-ft3nk 3 года назад

      Can you tell where are the answers to the question which were asked at the last of video ?

    • @thorntontarr2894
      @thorntontarr2894 2 года назад

      @@CodeBeauty the original statement is (- - a) + b not (- a) + b. Your last line "is actually (-5) + 5" and that is zero not 9. Silver has not correctly stated the test, missed a "-".

  • @mdabdulmumit6577
    @mdabdulmumit6577 4 года назад

    Thanks such a wonderful teaching method.

  • @RootsterAnon
    @RootsterAnon 4 года назад +1

    Pozdrav Saldina, drago mi je da vidim nekoga sa nasih prostora na Yt prenosi svoje znanje drugima. Pogledao sam sve clipove o C++ do sada. Ideja mi je napisati mali game engine (2d) kao vijezbu. Ono sto mi je falilo u prijasnjim videima je deklariranje i pozivanje funkcija te prosljedjivanje parametara i vracanje vrijednosti. Ideja za clip.

    • @CodeBeauty
      @CodeBeauty  4 года назад

      Veliki pozdrav i hvala puno na lijepim riječima. ☺️
      Na kanalu možeš naći playlistu koja se zove C++ functions i tu se nalaze stvari koje ti trebaju. Sretno sa radom. 🤗

  • @sergio_sciuto_conti
    @sergio_sciuto_conti 3 года назад

    I love your teaching.

  • @mr.faisal1708
    @mr.faisal1708 3 года назад

    Such a another level of info. It's really a helpful. Love u uhhhh. Please keep on.

  • @timmymomo9185
    @timmymomo9185 4 года назад

    Good but I have a question though. You said that a if increment is added at the end of a variable, then it will increment after any operation that needs to ,let me say act on the variable happens right? So, why didn't counter 2 increment because there was no operation happening on the variable at that time?

  • @happyhughes2058
    @happyhughes2058 2 года назад

    I watched the part about post and pre-increment about 50 times. I have finally got it lol...

  • @waltervalentini8604
    @waltervalentini8604 3 года назад

    int y = 3;
    cout

  • @idongarchie6632
    @idongarchie6632 5 месяцев назад

    help please. I m using Visual Studio. I notice that when i create a new solution and want to build, it still build the former solution I was working on. Any help how to build to properly select the correct solution to compile an build?

  • @ozengaming6307
    @ozengaming6307 2 года назад

    please teach us Javascript,php,css,html,python and mySQL.

  • @MohamedTarek-mu2nj
    @MohamedTarek-mu2nj 2 года назад

    Hi
    #include
    using namespace std;
    int main() {
    int m = 7;
    m %= 14;
    cout

  • @mickychali8928
    @mickychali8928 3 года назад

    you are the best always .........

  • @danny12345
    @danny12345 4 года назад +9

    Can you make a video of why girls need to be programmer
    And why you joined the world of computers .
    I want my daughter to join the world of computers and she says it's a male profession

  • @hatemshahudh5495
    @hatemshahudh5495 3 года назад

    Very smart and beautiful!

  • @jaezybeats5862
    @jaezybeats5862 4 года назад +1

    Nice vid. Thank you!!

  • @betwistra
    @betwistra 4 года назад +1

    Hey, so I know I'm a bit late (too late), but I didn't really understand the !(true && false) at the end of the video when you gave us the questions.

    • @adnanyeasir7965
      @adnanyeasir7965 3 года назад

      same

    • @thorntontarr2894
      @thorntontarr2894 2 года назад +1

      The expression is tested for true and for false but are required to be the same (&&) and as they are not the () expression if false. However, the !() negates the false and makes true

  • @ashah123123
    @ashah123123 3 года назад

    Excellent explaination.

  • @wariskabuli2735
    @wariskabuli2735 2 года назад

    for beginners, you should also describe how to save a c++ file extension it is not clear

  • @ROYALNIL_SITE
    @ROYALNIL_SITE Год назад

    cout in c++ it means print (in other languge )or counting ?

  • @linlin.linlin
    @linlin.linlin 2 года назад +1

    beautiful

  • @BookofYAH777
    @BookofYAH777 2 года назад

    11:28 that's probably only for Windows. But how do I clear console on Linux?

  • @jacquesduplessis3284
    @jacquesduplessis3284 3 года назад +1

    Hi, I am a bit confused with %. Why is 5%2=1 and 14%4=2. Should it not be 0,5 and in both cases (being the remainder of 5/2=2,5 and 14/4 = 3,5)? Or am I misunderstand what % means?
    Thanks!

    • @causewaypond
      @causewaypond 3 года назад +3

      i think you misunderstood reminder. Reminder is when 5%2 => (biggest number that can be divided by 2 without returning a float is 4) => 5-4 =1 => the reminder is 1
      14%4 => biggest multiple of 4 that is less than or equals to 14 is 12 => so 14-12=2 => reminder is 2

    • @sunilkumar-ft3nk
      @sunilkumar-ft3nk 3 года назад

      Can you tell where are the answers to the question which were asked at the last of video ?

    • @lexie_tiano
      @lexie_tiano 3 года назад

      @@causewaypond Thank you !

    • @hunter-c3r
      @hunter-c3r 3 года назад

      If you try 5/2.0 it will result in 2.5, if you don't use decimal it will round the result

  • @warmanone
    @warmanone 3 года назад +2

    Sry in advance but I do watch your video to learn how to code but god d*** you turned up the heat in this one

  • @astudent797
    @astudent797 3 года назад

    Fabulously explain

  • @0CoSmOs-_-
    @0CoSmOs-_- 3 года назад

    15:00 i used , instead of && and it worked is-->(&&) useless ? should i keep using , ?

  • @jafarabbas8983
    @jafarabbas8983 3 года назад

    what is the difference between ( & ) and ( && ) also between ( || ) and ( | ) ???

  • @saymyname4325
    @saymyname4325 3 года назад

    can we use 'clrscr()' instead of 'system("cls")'???!! 🤔🤔

  • @Kira073
    @Kira073 2 года назад

    where are the examples she is talking about?

  • @jierongwu1955
    @jierongwu1955 4 месяца назад

    love you❤

  • @mhdjaseem3195
    @mhdjaseem3195 3 года назад

    thanks, mam💕💖

  • @ChrisVideosGreek
    @ChrisVideosGreek 3 года назад

    5 / 2 = 2,5

  • @rifat.ahammed
    @rifat.ahammed 3 месяца назад

    Seeing * sign with any variable is scary

  • @chainonsmanquants1630
    @chainonsmanquants1630 4 года назад

    thanks

  • @programmingwithsarah409
    @programmingwithsarah409 4 года назад +1

    How did u get lot of views in so much less time ??
    Content is great... any other tip of promotion ?

    • @CodeBeauty
      @CodeBeauty  4 года назад +2

      Thank you, how did you find my channel? :D Maybe we can deduct something from your answer. :D

    • @programmingwithsarah409
      @programmingwithsarah409 4 года назад

      @@CodeBeauty from youtube home page ? It suggested me... i often look for c++ tutorials and i saw your video on my home page

    • @CodeBeauty
      @CodeBeauty  4 года назад +3

      @@programmingwithsarah409 Okay, so YT algorithm recommended me, I'm glad to hear that.
      I'm not an expert, I'm just starting myself, but I have done a good deal of research. The first thing is consistency! Then I would say that you have to look into your thumbnails, so that they're recognizable. The first time that people see you, they will not remember you, but if you make your thumbs to be recognizable, when they see your thumb for the second time, they'll know it's you, and watch your video if they liked the previous one, so the quality of content is important as well.
      Niche down! Find a specific field, don't make videos about everything!
      I have also had support on other platforms, so if you have FB, LinkedIn, Twitter, Instagram, whichever platform, post your videos there, don't be shy. If anyone needs your videos, they'll come and watch them, for those that don't, they'll just scroll away.
      Keywords, tags, SEO! As a small creator, you have to pay attention to these. There are tools such as TubeBuddy, Morning Fame, Keywords Everywhere, Google Trends...research about these. If you are familiar with C++, you can research my videos and see what keywords, descriptions and tags I'm using. Don't try to compete with the big channels out there, a long way you need to walk before YT starts to recommend your videos rather than theirs.
      You need to have something that you do better than anyone else and shoot on that.
      And good luck :D If I can help with anything else, let me know. :D

    • @programmingwithsarah409
      @programmingwithsarah409 4 года назад +1

      @@CodeBeauty your hardwork pays off.... great content and great efforts... i am MS computer sciences and a udemy instructor... you must try udemy too... there you can do online teaching and earn a lot if your course is liked by people.. and there is a way that you can put your videos on youtube and udemy as well if your course is not part of udemy for business program... try online teaching platforms too... i am sure you must rock there as well... btw, from which country you belong ?

  • @aahnafiya
    @aahnafiya 4 года назад +1

    great

  • @findikbabi
    @findikbabi 4 года назад +1

    cout

  • @lodyvermeulen
    @lodyvermeulen 3 года назад +1

    why do you always look so beautiful

  • @joaomigueldamaso5855
    @joaomigueldamaso5855 2 года назад

    #include
    using namespace std;
    int main()
    {
    //Qual é o resultado das seguintes linhas?

    int a = 5, b = 4;
    cout

  • @imnot9923
    @imnot9923 2 года назад

    Comment for Algor

  • @bosnaliboy
    @bosnaliboy 4 года назад +4

    Koji ti je instagram

    • @ahmo2038
      @ahmo2038 4 года назад +8

      lol ti si siugrno sa klixa

    • @Ssssssffffff
      @Ssssssffffff 4 года назад +7

      Nes jebat

    • @CodeBeauty
      @CodeBeauty  4 года назад

      instagram.com/truecodebeauty/

    • @bosnaliboy
      @bosnaliboy 4 года назад +1

      @@CodeBeauty ok eto me

  • @mosqali1970
    @mosqali1970 3 года назад +1

    handsome