Array of Objects & Passing Objects as Function Arguments in C++ | C++ Tutorials for Beginners #25

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

КОМЕНТАРІ • 358

  • @shivanshthakur4538
    @shivanshthakur4538 4 роки тому +257

    viewers are decreasing from first to this video ,only people who are actually interested are watching now

    • @sam-bm1fg
      @sam-bm1fg 3 роки тому +8

      People lose interest way too early...

    • @ijnokm7903
      @ijnokm7903 3 роки тому +17

      bcz peoples are motivated ... they dont come with there own interests

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

      @@ijnokm7903 wise Line !!!!!!!!!

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

      yeah I am in 8th grade I can't understand complex numbers but also I am practicing.......

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

      @@sushilasriv19 complex numbers aren't a big deal . It's a very simple and moreover you don't need to understand it for this video .

  • @rajangupta732
    @rajangupta732 2 роки тому +35

    The part I loved a lot about your tutorials is that, you use extremely good, short, easy and straight forward examples to teach. I actually wonders from where do you bring them haha.
    Really Really Incredible and well structured.
    Thank you so much for helping us.
    - With love :)

  • @harshrathor4704
    @harshrathor4704 3 роки тому +9

    Code with harry is the channel who shows the work instead of talking much

  • @anuragmalviya2397
    @anuragmalviya2397 7 місяців тому +6

    instead of using endl you can use "
    "
    Reason: endl flushes the buffer whereas
    just creates a way for new line and keeps the program fast

  • @anozatix1022
    @anozatix1022 2 роки тому +31

    This method of adding objects is much much simpler than operator overloading 👌👌. But still not a single video in youtube covers operator overloading in detail🙂

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

      Then
      You should cheack out c++ by saurabh shukla sir...

  • @kunalkumar6783
    @kunalkumar6783 2 роки тому +38

    Yeah, little bit difficult, but your simplicity of explanation and my dedication of understanding worked.

  • @earnwithknl
    @earnwithknl 2 роки тому +7

    Doston haar nhi man ni, datte raho... 💪💪

  • @TheISP
    @TheISP 4 роки тому +25

    Thank you Harry Bhai! I have learnt a lot from your videos and have shared them with my friends as well!! Thank you so much for your help!!!!!!!!!

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

    *Sir mene apka pura tutorial download kiya h python ka and tq so much for this meri Infosys ki exam h 22 of March 2020 ko 3 rounds he mene 1st round clear kr liya h and usme 2 languages thi to mene Python choose ki h I hope ki me sb sikh jau and exam ache se de sku*
    And sir abhi InfytQ ke sample papers please solve krwa do please

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

      Bhai round clear Kar liya Apne
      Infosys ka

  • @AshutoshKumar-fu6qe
    @AshutoshKumar-fu6qe 3 роки тому +40

    15:32 , Hard tha guruji, but samajh me aa gaya finally. All the appreciation goes to your explanation.

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

      Nahi tha hard..it was medium level... Just a and b ka value lia 2 times phir setdatasum ke help se add kr dia a apni jaga and b apni jaga ...kya hard tha isme🙄

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

      Medium bhi nahi easy tha dekhte se hi samajh aa gaya🤣🤣

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

      @@zombiekiller7101 easy bhi nhi tha bina dekhe hi samjh aa gya

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

      @@vaibhavwatts mujhe bin dekhe tumsb ke conversation se hi smjh aa gya

    • @vinitsharma4787
      @vinitsharma4787 2 роки тому +6

      @@sachinsingh6885 muje to tumare comment ke notification ke sound sune pe he smaj aagaya

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

    har video k end me ek satisfaction milti hai concepts clear hone ki .thank u sir :) :)

  • @lifeofdreams2025
    @lifeofdreams2025 4 роки тому +7

    Sir, i have forwarded and suggested your videos to all my uni friends

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

    i made product of 2 C.N after watching this.
    i didnt copy pasted ur code i just made somewhat alteration.
    in output i have to enter a and b manually and used operation directly in cout function of void product

  • @animeboii-zv8vo
    @animeboii-zv8vo 4 роки тому +24

    Thank You sir .You are the best .thanks really for making such an easy and learnable course

  • @ss__gaming3392
    @ss__gaming3392 9 місяців тому

    In mathematical terms, the `setDataBySum` function computes the sum of two complex numbers represented by `o1` and `o2`, and stores the result in the current object's data members.
    If we denote the complex numbers as follows:
    - `o1` = \(a_1 + b_1i\)
    - `o2` = \(a_2 + b_2i\)
    Then, the function computes the sum of these complex numbers and stores it in the current object's data members as:
    - Real part (`a`) = \(a_1 + a_2\)
    - Imaginary part (`b`) = \(b_1 + b_2\)
    So, the resulting complex number stored in the object is:
    \[ (a_1 + a_2) + (b_1 + b_2)i \]

  • @adityapradhan8474
    @adityapradhan8474 10 місяців тому

    Thank you so much harry bhai. Apke wajah se hi to programming sikh paate hain zyadatar students india me

  • @sahilpokhriyal5211
    @sahilpokhriyal5211 3 роки тому +6

    Bhaiya , agar aap employee ki jagah games se related ki example dete to aur zyada aata poora coarse. But still course is great 🙌

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

    #include
    using namespace std;
    int main(){
    cout

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

    17:08
    //We can also use this
    for(int i = 0 ; i

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

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

  • @SatyamKumar-pd8qy
    @SatyamKumar-pd8qy 3 роки тому +6

    Crystal clear the concept of array of objects in c++ . Harry bhai always d only one❤🙏

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

      harry ne object overloading ke uppr video banaya h kya ?

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

    it is very good job harry bhai, because after watching your video we don't have to read complicated book !

  • @UrmilaDevi-fg1hs
    @UrmilaDevi-fg1hs 4 місяці тому

    A lot of thanks Harry sir ...i am watching your all videos of this playlist and hope as soon as possible it 's competed with full understanding... thanks again ❤

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

    your videos are not good for problem solving but these are good for understanding the programming language

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

    Thank You sir ,Very useful CPP course ...............!!!!!!!!!!!!!

  • @abrarahmad3897
    @abrarahmad3897 Рік тому +10

    // understand the array of objects and passing objects as arguments.
    #include
    using namespace std;
    // making a class complex
    class complex{
    int a,b;
    public:
    void setdata(int x, int y);
    void setbysum(complex o1,complex o2);
    };
    // designing a function setdata to set the inputted data from the user to form our required complex number
    void complex :: setdata(int x,int y){
    a = x;
    b = y;
    cout

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

    People praised on the first 5 videos because this whole course is free..If you actually want to praise and thank this guy at make full use of this course for yourself..🙂

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

      Bhai yar muje opps se kuch samaj nahi aara hai 😭😭 please help

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

      @@dheerajaggarwal606 2 3 baar dekho

    • @GOJOANDSUKUNAFAN
      @GOJOANDSUKUNAFAN 8 місяців тому

      ​@@dheerajaggarwal606 Bhai oops me tujhe kya smj nhi a rha me batata hu

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

    Harry bhai ne Facebook kharidliya Congrats harry bhai

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

    sir aap har video k sath notes available kra dete to kafi accha rehta kuki aap ki kahi sari batein nhi note kr pata hu

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

      Open the link given in description and open the website..and read / write the notes from there

  • @harshkharwar9352
    @harshkharwar9352 4 роки тому +34

    Thnx Harry Sir . But I have some query.

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

    just completed 25% of c++ course
    First milestone reached!
    Aiming for 50% course completion

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

      Yep same. I wanna complete this full course in a week if I can, and move to some practice and then to dsa

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

      Bro not 25% but more than 35 %
      Total videos are 74
      Are you one of those guys joining college this year(just curious 🧐🥲)

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

      Same here guys✌️

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

      @@divyaagarwal6172 but still its, classes are confusing 🥲

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

      @@treasurehunter449 i m from mechanical eng. , will companies allow me in there interviews?

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

    Jazakallah
    😇😇

  • @krishnabansal17
    @krishnabansal17 Місяць тому

    Harry sir Zinda baad, actually OOPs ki starting main mujhe kuch samjh nahi aa raha tha, I thought ki aap dhang se nahi padha rhe ho, but I was wrong, video by video Clear ho rhe doubts.

  • @tip7912
    @tip7912 10 місяців тому

    I stongly recommend to watch this series after completing c

  • @usamajaved9145
    @usamajaved9145 4 дні тому

    thanks brother.

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

    #include
    using namespace std;
    class complex {
    int a,b;
    public:
    void set(int v1,int v2) {
    a = v1;
    b = v2;
    }
    void setsum(complex o1,complex o2) {
    a = o1.a + o2.a;
    b = o1.b + o2.b;
    }
    void print() {
    cout

  • @IDK-sk2yj
    @IDK-sk2yj 2 роки тому +3

    That complex number example wasn't much harder to understand.. Just have to focus on all lines of methods.

  • @AyushKumar-vw6jv
    @AyushKumar-vw6jv 3 роки тому +2

    Great explained

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

    88,612 `this many people arent teh motivated ones ..this are the disciplined ones towards their goals

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

    Thanks bhai bahut achi vedio ha

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

    Can you please make a course on c++ multi threading

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

    Bhai plzz stocks market ki algo banane ki series bana do plzz plzz plzz bhai🙏🙏🙏

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

    best tutorial on c++

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

    Set data by sum jo function hai usme complex jo hai wo koi data types hai na int ki trah

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

    #include
    using namespace std;
    class employee{
    int id;
    int salary;
    public:
    void setid(){
    salary = 18000;
    coutid;
    }
    void getid(){
    cout

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

    Thanks harry bhai , ap bara sahi explain karte ho har chez

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

    Bhai app payment gateway ko integrate kase kare in php par vedio bana dho...
    Full tutorial

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

    Thank You 🙏🏻

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

    Thank u sir I'm following this playlist from the beginning and everything is clear to me

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

      did u understand why he use complex 01 and 02 and how it change the value of a and b , i mean it is sooo confusing .

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

      @@nimi5631 becoz unko ussi class ke objects bnane the esliye!

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

      @@nimi5631 aur rhi baat a and b ki value change kese hui toh just remind the concept of structure, with help of (.) we can access that variable

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

      @@nimi5631 follow up this code here I asked the user to enter the value of a and b and I also created a function only for output:- by declaring int am, bm;....follow up the below code here you'll get all your question answer and if you got any query then ask me I'll resolve it!
      #include
      using namespace std;
      class imp
      {
      int a;
      int b;
      int am;
      int bm;
      public:
      void enterdata(void);
      void showdata(imp o1, imp o2);
      void printnumber(void);
      void foryou(void);
      };
      void imp :: enterdata(void)
      {
      couta;
      coutb;
      }
      void imp :: showdata(imp o1, imp o2)
      {
      am = o1.a + o2.a;
      bm = o1.b + o2.b;
      }
      void imp :: printnumber(void)
      {
      cout

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

    Thank you very much sirji🙏❤️

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

    I am from pakistan and thankyou soo much for the guidance you help alot ❤️❤️

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

    Sir u r suprub...
    Thank u so much

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq Рік тому +1

    Awesome and heartwarming song.😎😎👍👍

  • @AshutoshKumar-fu6qe
    @AshutoshKumar-fu6qe 3 роки тому +5

    Complex number will really make this program complex for 10th students and below. Me in 12th.

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

      Jee padho

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

      bhai main to commerce background se hu aur abhi 1st year main hu aur mujhe complex number ke baare main koi idea nhi tha but code dekh ke to samajh gaya but jab google kiya to samajh nhi aaya
      code wala to dekh ke samajh aa gaya but wo actual math wala complex number nhi pata

    • @AshutoshKumar-fu6qe
      @AshutoshKumar-fu6qe Рік тому

      @@--kakashi Keep it up bro!

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

    I wish you were my teacher in my clg

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

    Thanks a lot

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

    Thanku bhai for making these videos ......helping me a lot😁😁😁

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

    Thanks Harry Bhaiya

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

    Thanks HarryBhai :)

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

    Java ka Complete tutorial PLZZZZZ.... UR the best...waiting for the next video....

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

    Can you please make a detailed tutorial on "HOW TO MAKE A BOOK APP IN THE LATEST VERSION ANDROID STUDIO." There are absolutely none videos about that on UA-cam right now.

  • @RahulRai-vw3dw
    @RahulRai-vw3dw 2 роки тому

    harry bhai your videos getting much harder to understand I watched the videos twice but doesn't able to understand so I skipped those videos. Please make it easy to understand

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

    THANK YOU SIR ❤️❤️❤️🇮🇳🇮🇳🇮🇳

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

    0:43 Habits of a python coder part 1
    (update) I mean giving the colon after a class

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

    you are good vai, ap great ho vai, mera codding ka man apke baje sehi bana,

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

    Congratulations for 2m family ❤️

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

    Thank you, boss! Love you!

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

    thank you sir for this lovely tutorials

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

    sirr the course is awesomee!!!! can i please know how many tutorials are there in the course????

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

    Very useful CPP course
    Thank you very much

  • @Priya-hr5si
    @Priya-hr5si 3 роки тому

    Aapki sabi videos suppppppperrrrrrrr se b uppppper

  • @dark-knightCoder
    @dark-knightCoder 2 роки тому

    thank sir it really good

  • @DineshSingh-hx5kw
    @DineshSingh-hx5kw 3 роки тому

    Nice explanation sir

  • @AniketKumar-bm8gi
    @AniketKumar-bm8gi 4 роки тому

    Bahut achha video hai.

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

    Thank you so much sir ❤❤

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

    After 13 min :- my mind😵‍💫🤯

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

    Nice explanation👍👍

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

    Thank you sir ❤

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

    Day-16
    tut_25 ........................done

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

    Thanks for the video sir...you often use rohan and lovish...are they your friends harry bhai

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

    awesome tutotrial sir

  • @Armankhan-dn5vg
    @Armankhan-dn5vg 2 роки тому

    You are best

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

    3+4i means 3 + √-16

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

    Plz can any clear the (complex 01,complex02 ) part of the code

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

    sir jo apne obj of array me salary daali he usko bhi show krna chaiye wrna samne employee ko kya pta ki salary kitni daali he

  • @SurajKumar-ml2vb
    @SurajKumar-ml2vb 3 роки тому

    Harry bhai please start dsa in c++

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

    Thank you!!

  • @ShivamRawat-gw5xv
    @ShivamRawat-gw5xv 2 роки тому

    This is the code which i have written
    // to find sum of Complex numbers
    #include
    using namespace std;
    class factory
    {
    private:
    int a;
    int b;
    int c;
    int d;
    int sum;
    public:
    void read()
    {
    cout a;
    cout b;
    sum = a + b;
    }
    void read1()
    {
    cout c;
    cout d;
    sum = c + d;
    }
    void data_by_sum()
    {
    cout

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

      Bro is mein passing objects by function kahan hai??
      upr video ka title prho us me kya likha aur tum ne kis method se kiya ... tum ne jo kya wo simple method hai lekin is me Harry bhai ne passing objects as functions smjhaye hain jo k tumhary waly se different hai

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

    Unity please

  • @Harsh-iz9gf
    @Harsh-iz9gf 4 роки тому +7

    Sir would you ever start a series in Ethical Hacking?

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

    Sir please continue Node.js tut.

  • @Forever._.curious..
    @Forever._.curious.. 3 роки тому +1

    Love you harry ✨💖

  • @KRIShna-rh5hs
    @KRIShna-rh5hs 9 місяців тому

    Aur ye ek orr bouncccerrr harry bhai ki or see...😂

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

    thanks broo

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

    didnt understand the setbysum function. why did u multiply o1to a and o2toa after equating it to a ?

  • @RohitSingh-pl5wi
    @RohitSingh-pl5wi 2 роки тому

    mai smjh gya 😀

  • @MuhammadSaqib-f6v
    @MuhammadSaqib-f6v 9 місяців тому +1

    Function me ap setData Ka D capital lekte he agr small d lik le to correct Hoga i.e setdata ...is this correct or not

    • @UrmilaDevi-fg1hs
      @UrmilaDevi-fg1hs 4 місяці тому

      Yess ...You can use small and Capital both but first character should be small or underscore

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

      u can but keeping the D capital is a good practice in programming since it helps in better code understanding

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

    sir this is helpful i wanna employee id salary and dated of joining

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

    Love you sirji

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

    Sir ye wala video mai o1 o2 class method bahoot confuse kar diya...