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

Поділитися
Вставка
  • Опубліковано 1 бер 2020
  • ►Source Code & Resources: codewithharry.com/videos/cpp-...
    ►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.codewithharry.com
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

КОМЕНТАРІ • 350

  • @shivanshthakur4538
    @shivanshthakur4538 3 роки тому +200

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

    • @sam-bm1fg
      @sam-bm1fg 2 роки тому +7

      People lose interest way too early...

    • @ijnokm7903
      @ijnokm7903 2 роки тому +14

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

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

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

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

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

    • @shubhamprakash8488
      @shubhamprakash8488 2 роки тому +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 Рік тому +31

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

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

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

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

    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 роки тому +3

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

  • @TheISP
    @TheISP 3 роки тому +24

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

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

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

    • @learncseasily3385
      @learncseasily3385 2 роки тому +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 2 роки тому +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

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

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

  • @animeboii-zv8vo
    @animeboii-zv8vo 3 роки тому +23

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

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

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

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

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

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

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

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

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

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

  • @palashagrawal2343
    @palashagrawal2343 3 роки тому +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

  • @adityahiremath1765
    @adityahiremath1765 2 роки тому +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 2 роки тому

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

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

      @@dheerajaggarwal606 2 3 baar dekho

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

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

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

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

  • @SatyamKumar-pd8qy
    @SatyamKumar-pd8qy 2 роки тому +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 ?

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

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

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

    Thnx Harry Sir . But I have some query.

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

      Query kya hai ?

    • @blackwarrior823
      @blackwarrior823 Рік тому +14

      @@lostsky7656 been 3 years no answers yet!

    • @MohitSingh-wx1zd
      @MohitSingh-wx1zd 10 місяців тому +5

      ​@@lostsky7656ye Raaz bhi unke saath hi chle gya 😂😂

    • @lostsky7656
      @lostsky7656 10 місяців тому +1

      @@MohitSingh-wx1zd 😂😂😂

    • @nitinsharma5242
      @nitinsharma5242 9 місяців тому +1

      Hui solve query?

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

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

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

    Thank you very much sirji🙏❤️

  • @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 🙌

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

    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 \]

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

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

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

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

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

    Thank You 🙏🏻

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

    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

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

    *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 3 роки тому

      Bhai round clear Kar liya Apne
      Infosys ka

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

    Great explained

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

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

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

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

    • @treasurehunter105
      @treasurehunter105 2 роки тому +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 2 роки тому +3

      Same here guys✌️

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

      @@divyaagarwal6172 but still its, classes are confusing 🥲

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

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

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

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

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

    best tutorial on c++

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

    Thank you, boss! Love you!

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

    Very useful CPP course
    Thank you very much

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

    Thank you!!

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

    Congratulations for 2m family ❤️

  • @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 Рік тому

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

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

      @@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 Рік тому

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

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

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

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

    Thanks Harry Bhaiya

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

    Bahut achha video hai.

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

    thank sir it really good

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

    Thanks a lot

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

    Thank you sir ❤

  • @Uneek_Earnings
    @Uneek_Earnings 5 місяців тому

    THANKS 😊😊

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

    Nice explanation👍👍

  • @fanimeToon3910
    @fanimeToon3910 9 місяців тому +1

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

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

    Nice explanation sir

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

    Love you harry ✨💖

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

    Thank you Sir

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

    awesome tutotrial sir

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

    Thank you so much sir ❤❤

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

    Thanks a lott bhaiya🙏

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

    thank you....

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

    Awesome !!

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

    Thanks bhai bahut achi vedio ha

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

    Jazakallah
    😇😇

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

    thanks harry bro

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

    Harry bhai ne Facebook kharidliya Congrats harry bhai

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

    thank you sir

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

    Thanks sir

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

    Thanks HarryBhai :)

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

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

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq 9 місяців тому +1

    Awesome and heartwarming song.😎😎👍👍

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

    Sir u r suprub...
    Thank u so much

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

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

  • @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.

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

    I stongly recommend to watch this series after completing c

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

    thanks broo

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

    Love you sirji

  • @Armankhan-dn5vg
    @Armankhan-dn5vg Рік тому

    You are best

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

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

  • @IDK-sk2yj
    @IDK-sk2yj Рік тому +3

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

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

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

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

    Ekdum mast bhai

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

    Amezing 😊😊

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

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

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

    I wish you were my teacher in my clg

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

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

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

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

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

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

    Bro ,plz make tutorial for c #

  • @goyanidhaval8
    @goyanidhaval8 Рік тому +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

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

    Aapki sabi videos suppppppperrrrrrrr se b uppppper

  • @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 2 роки тому

      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!

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

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

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

    nice

  • @RohitSingh-pl5wi
    @RohitSingh-pl5wi Рік тому

    mai smjh gya 😀

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

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

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

    thank you sir for this lovely tutorials

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

    Sir please continue Node.js tut.

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

    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 2 роки тому

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

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

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

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

    what is o1 o2 and where he initialized it to int
    please someone explain please

  • @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 Рік тому +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

  • @user-jm1vp3io1t
    @user-jm1vp3io1t 3 місяці тому

    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

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

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

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

    Unity please

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

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

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

    After 13 min :- my mind😵‍💫🤯

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

    // SUM OF EACH ELEMENTS
    #include
    #define MAX 50
    using namespace std;
    class Array
    {
    private:
    int x[MAX];
    int size;
    int sum;
    public:
    void getArray(int);
    void putArray();
    int sum();
    };
    void Array::getArray(int s)
    {
    size=s;
    for(int i=0;i