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
viewers are decreasing from first to this video ,only people who are actually interested are watching now
People lose interest way too early...
bcz peoples are motivated ... they dont come with there own interests
@@ijnokm7903 wise Line !!!!!!!!!
yeah I am in 8th grade I can't understand complex numbers but also I am practicing.......
@@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 .
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 :)
Yeah, little bit difficult, but your simplicity of explanation and my dedication of understanding worked.
😂❤
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🙂
Then
You should cheack out c++ by saurabh shukla sir...
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!!!!!!!!!
15:32 , Hard tha guruji, but samajh me aa gaya finally. All the appreciation goes to your explanation.
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🙄
Medium bhi nahi easy tha dekhte se hi samajh aa gaya🤣🤣
@@zombiekiller7101 easy bhi nhi tha bina dekhe hi samjh aa gya
@@vaibhavwatts mujhe bin dekhe tumsb ke conversation se hi smjh aa gya
@@sachinsingh6885 muje to tumare comment ke notification ke sound sune pe he smaj aagaya
Code with harry is the channel who shows the work instead of talking much
Thank You sir .You are the best .thanks really for making such an easy and learnable course
Please make detailed course on Data Structures and Algorithm those who want this please comment 🙏
me
Yes Harry bhai please
ye bhott jaroori hai
Yes I also want it.
yes me too please bhai
Sir, i have forwarded and suggested your videos to all my uni friends
it is very good job harry bhai, because after watching your video we don't have to read complicated book !
// 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
Thank you so much harry bhai. Apke wajah se hi to programming sikh paate hain zyadatar students india me
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
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..🙂
Bhai yar muje opps se kuch samaj nahi aara hai 😭😭 please help
@@dheerajaggarwal606 2 3 baar dekho
@@dheerajaggarwal606 Bhai oops me tujhe kya smj nhi a rha me batata hu
Thank You sir ,Very useful CPP course ...............!!!!!!!!!!!!!
Crystal clear the concept of array of objects in c++ . Harry bhai always d only one❤🙏
harry ne object overloading ke uppr video banaya h kya ?
har video k end me ek satisfaction milti hai concepts clear hone ki .thank u sir :) :)
Yes🤘
Thnx Harry Sir . But I have some query.
Query kya hai ?
@@lostsky7656 been 3 years no answers yet!
@@lostsky7656ye Raaz bhi unke saath hi chle gya 😂😂
@@MohitSingh-wx1zd 😂😂😂
Hui solve query?
Doston haar nhi man ni, datte raho... 💪💪
Thank you very much sirji🙏❤️
Bhaiya , agar aap employee ki jagah games se related ki example dete to aur zyada aata poora coarse. But still course is great 🙌
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 \]
Thanks harry bhai , ap bara sahi explain karte ho har chez
Thanku bhai for making these videos ......helping me a lot😁😁😁
Thank You 🙏🏻
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
*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
Bhai round clear Kar liya Apne
Infosys ka
Great explained
just completed 25% of c++ course
First milestone reached!
Aiming for 50% course completion
Yep same. I wanna complete this full course in a week if I can, and move to some practice and then to dsa
Bro not 25% but more than 35 %
Total videos are 74
Are you one of those guys joining college this year(just curious 🧐🥲)
Same here guys✌️
@@divyaagarwal6172 but still its, classes are confusing 🥲
@@treasurehunter105 i m from mechanical eng. , will companies allow me in there interviews?
Can you please make a course on c++ multi threading
best tutorial on c++
Thank you, boss! Love you!
Very useful CPP course
Thank you very much
Thank you!!
Congratulations for 2m family ❤️
Thank u sir I'm following this playlist from the beginning and everything is clear to me
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 .
@@nimi5631 becoz unko ussi class ke objects bnane the esliye!
@@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
@@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
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..
Thanks Harry Bhaiya
Bahut achha video hai.
thank sir it really good
Thanks a lot
Thank you sir ❤
THANKS 😊😊
Nice explanation👍👍
your videos are not good for problem solving but these are good for understanding the programming language
Nice explanation sir
Love you harry ✨💖
Thank you Sir
awesome tutotrial sir
Thank you so much sir ❤❤
Thanks a lott bhaiya🙏
thank you....
Awesome !!
Thanks bhai bahut achi vedio ha
Jazakallah
😇😇
thanks harry bro
Harry bhai ne Facebook kharidliya Congrats harry bhai
thank you sir
Thanks sir
Thanks HarryBhai :)
THANK YOU SIR ❤️❤️❤️🇮🇳🇮🇳🇮🇳
Awesome and heartwarming song.😎😎👍👍
Sir u r suprub...
Thank u so much
I am from pakistan and thankyou soo much for the guidance you help alot ❤️❤️
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.
Yes👍
I'm excited
I stongly recommend to watch this series after completing c
thanks broo
Love you sirji
You are best
#include
using namespace std;
int main(){
cout
That complex number example wasn't much harder to understand.. Just have to focus on all lines of methods.
sir this is helpful i wanna employee id salary and dated of joining
Ekdum mast bhai
Amezing 😊😊
Bhai plzz stocks market ki algo banane ki series bana do plzz plzz plzz bhai🙏🙏🙏
I wish you were my teacher in my clg
Set data by sum jo function hai usme complex jo hai wo koi data types hai na int ki trah
Bhai app payment gateway ko integrate kase kare in php par vedio bana dho...
Full tutorial
88,612 `this many people arent teh motivated ones ..this are the disciplined ones towards their goals
Bro ,plz make tutorial for c #
#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
Aapki sabi videos suppppppperrrrrrrr se b uppppper
Complex number will really make this program complex for 10th students and below. Me in 12th.
Jee padho
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
@@--kakashi Keep it up bro!
Plz can any clear the (complex 01,complex02 ) part of the code
nice
mai smjh gya 😀
17:08
//We can also use this
for(int i = 0 ; i
thank you sir for this lovely tutorials
Sir please continue Node.js tut.
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
Open the link given in description and open the website..and read / write the notes from there
sirr the course is awesomee!!!! can i please know how many tutorials are there in the course????
74
what is o1 o2 and where he initialized it to int
please someone explain please
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
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
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
Thanks for the video sir...you often use rohan and lovish...are they your friends harry bhai
Unity please
0:43 Habits of a python coder part 1
(update) I mean giving the colon after a class
After 13 min :- my mind😵💫🤯
// 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
Error Not Solve