OOPs Recap & Nesting of Member Functions in C++ | C++ Tutorials for Beginners #22
HTML-код
- Опубликовано: 29 фев 2020
- Download the best IDE for C, C# and C++: bit.ly/WholeTomato-CWH
►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
At first, i got some doubts regarding some functions...but after watching the second time...the concept is now crystal clear...
thanks harry bhai
Bhaiya, the complexity of your teacching in this video is higher as compare to other videos (my opinion)
Mere kuchh samajh hi Nahi Aaya 😁😁
String s. Ko kiuu use kiyaa hai koi btayegaa
@@singletrackstatus1505 to store elements as ascii of their specif character
@@kingzexperiment ok
right!! This was quite complex
Your lectures are too good!! You use to teach us those minute things, even our university faculties did not focus on those things. HATS OFF!! KEEP GOING SIR, WE NEED YOUR CHANNEL.
Inhone strings c++ Kab padhaya
@@nikhilgupta860 NHI PADHAYA BHAI, VAHI KAHI AUR VIDEO DHOONDH KE PADH LO INTERNET SE
@@nikhilgupta860 string using c ko dekhlo harry bhai ka same hai.
Bhai operators overloading nhi pdaya kya Harry Bhai ne
chup
By default member of class is private.Thanks for teaching in a very simple but effective way . 👍
Right ✅️ understanding
May this channel grows exponentially ❤️❤️❤️and become the largest Computer science channel in India
see all comments and post this line
This is not a computer science channel by any means , it is a coding / development / programming channel.
Major misconception about computer science
CUrrently 1.74 M subs on 25 Aug21
@Shubham Mhatre yeah
bhai can someone explain , what he click to run the same program without clicking the run button which shown above ?
This lecture is explained very well. Please come up with this strategy, 1) First give the overview 2) make the code 3)Explain again in simple words.
Because when you explain while writing, sometimes students lost attention.
app bengal se ho?
yes bro you are right
Cmon dude...really?? He is teaching 4 free and u r crying over it??thats students problem if he lose his concentration
bhai can someone explain , what he click to run the same program without clicking the run button which shown above ?
@@jeevaalok1467 u can use terminal or right click u r mouse and then u can see run code
Was quite hard to understand, but with full concentration, I managed to understand everything perfectly 😃. Thanksss
same here bro🙂
true man
Still struggling to get this.
I'm just crazy on the way of speaking the line "I will see next time." 🤩🤩🤩🤩🤩🤩🤩
It is a function in the string library itself. It gives us the character present at the given index in the particular string.
for example
string k="I_am_good";
cout
TX
but ab ye string ke functions kaha se sikhne ko milega
Kya isi course me aage alag se
ya books me?
You're literally the best💖💖
It's been weeks I couldn't grab these concepts in online class and reading PDFs, but have been watching your vids. My concepts cleared in just hour.
I enjoyed this video a lot this is my first day for starting c++ and I am in 22 video feeling awesome
This video goes beyond my head.
Harry bro explained the in such a way that everyone can understand very easily.
@@harishsonawane855 Hmm the thing is he explained this by taking complicated functions for nesting , maybe that's why some people didn't understood.
Easy hi toh tha
@@FANSasFRIENDS bro ep 21 firse dekho aap samj jaoge😀
Ok
ur videos are so informative!!!
i had learn my full course of c++
eventhough i am studying in 2nd year of diploma.
so thankyou so much
After seeing this video I felt that I learned something new. This video tells us that string is a data type in c++ as it was not in c.
Why @codewithHarry using s.at() function at 11:39 i couldn't understand it can you please explain
You are the best Harry!!!!
You are helping many students by your videos ....very grateful to you
This video is very Complex instead of other video on utb.
But you are champ sir❤
Sir you are great pls complete every playlist because you are only my teacher and no one teaches other then you to me so pls its a humble request pls complete every playlist of programming languages and every informative playlist
just awesome tutorial about the c++ language continue bro
keep it up i am regular viewers of your videos
The doubt of previous lec was cleared in this. Great
This lecture was a bit complex to grasp. But when you revised the whole part again, it ended smoothly.
Ekdum shi he..pehle kuch nehi samajh ata he ..ek baar firse dekho to dhire dhire samjh aata he
Thank You for making us understand in a Simple Way!
Thank You so much brother!
Learned so many things very in very easy ways!
Lots of love from Bangladesh 🇧🇩
Awesome video Sir....really like your way of teaching...best video till the 22nd vid of this playlist...gonna check the remaining videos now
You guide new people very well thanks to teaching in easy way and making us comfortable with c plus plus🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
sir your course is really cool !!!! please upload new videos as soon as possible and complete this awesome c++ course
finally playlist start again thx harry bhai 😀
Shuru k 14 min dekha head k bahar gya lkn fr revind kiya dobara dekha to smjh aagya Alhamdulillah 🙌🏻🙌🏻🙌🏻
After watching it 5 times and other videos
I'm able to understand this video finally 😅
This was the hardest video till now for me
Mee too
@@bhavyakhandelwal1895 which college &yr?
@@zeeshan1019 Jaipur Engineering college and research centre , jaipur . 1st year
bhai can someone explain , what he click to run the same program without clicking the run button which shown above ?
@@jeevaalok1467 ctrl +alt +N
Great work harry bhai , there are more creators that are making c++ coourse but the Thing is "aapki baat alag hai"
Awesome playlist 👍👍.. appreciate your efforts.. thanks bro 🙏
Pehli baar me kuch palle nhi pada, 2 ghante apna sar phoda tb jaake samajh me aaya. And now the concept is crystal clear.
Thanks Harry bhai 😊
NEXT LVL Coding with ease!
Thanks, Harry bhai..💖❤💖
thanks for this types of amazing courses!
This video and the entire playlist is great I can't believe I could grasp c++ concepts in such a short time thanks for your efforts.
waaah nice course bhaiya.....
i started following your course from 15 jan 2022.....
This course helped me a lot.....
Bhai u r doing great work . Bahut ache se smjh aata ha aapki vedio se.
Whole nesting topic starts from 24:34 man
Thanks
But the entire video is useful... can't jump directly there😊
good bro continue your playlist about c++
very very thankyou bhaiya , jo mai apne jeevann mein nhi seekh paya vo , aadhe ghante mein seekh gaya .😍😍
Sir, can you make a playlist in Cyber Security... please sir
Please!
+1
Mahasay yeh bhi insaan hai yeh vs ko lrke padhe hai inko sab kuch nahi aata
Sir you are amazing..best teacher in RUclips .....
Best tutorial.. I have seen many C++ tutorials but I always had confusion now it is gone.
I am literally enjoying this c++ playlist... Not me, those who are watching your videoa they are also enjoying and kearning so efficiently as your teaching methods...
Bhai aag haa videoss
Aap sach main hum logo ka bhala kr raha haa and seriously ye important haa topic because aapna hi bola thaa c++ jaisi koi language nhi
What a beautiful lecture......loved it❤️❤️❤️
bhai string me text store hota h na toh harry bhai cin integers kaise karrha
@@parzyst6282 cin>>s; hi toh hai kya dikkat ho gyi?
its 22nd video tht mean 50 more left i am enjoying it . i didnt checked ur DSA playlist agr hai toh plzzz usme bhi aisa hi explain krna
bhaigi
First i didn't understand but afterwards i watched again and understand clearly.
Harry bhai you are doing so well for the new coming generations. Thank you so much!
Topic :Competitive programming , please make video how much it is necessary and how can we continue it with development. Thank you.
Bilkul bhi important nahi h development k liye
0%%%%
competitive programming just for practices enhances you dsa
@@robinchauhan4418 but do companies look for competitive programming profile?
@@karanvirsingh2830 it's depends upon to you if you are good in cp then mention in resume and you are top coder in cp such as codechef, code force website then companys send you interview letter
If you not top coder and you know data structure and algorithms very well and prepare company wise preparation (do recently asked questions from geekforgeeks website )you can also apply for off-campus and some computer science subject like operating system, DBMS, CN, CD
@@robinchauhan4418 I m entering nit as a fresher
Thanks harry bhai...
I m waiting for this...
Thank you harry bhai.Amazing teaching as always.
Course ekdam baria aur majedar chal raha hai aur bohot maja v aa rha hai aapke saath c++ k journey me Bhaiya.
Thanks Harry Bhaiya
The course is amazing sir g. Hats off to your efforts for students like me.
Sir I am unable to understand what is "string function( s.length)"
And what is [s.at(i)] and how it works please help me to understand
This
.length gives length of string
Eg. string str = "hello";
Then stir.length will give int length of hello which is int 5
Now .at(I) element at index i
Eg. in string "hello"
str.at(0) is "h" similarly str.at(4) is "o"
@@me-oniichan thanks bhai
It is same as s[I]=s.at(I)
@@me-oniichan terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::at: __n (which is 6) >= this->size() (which is 6)
Aborted
on running this program in online compiler iget this output after read function can u plzz help
@@me-oniichan don't we need to declare length() function before hand or is it already built in?
Outstanding Explanation
on "NESTING of Member Functions" & Thanku so much Harry Bhai...👌🔥👍
Salam Harry Brother Ap super hay bht achi Tarah samjh araha hay and motivation bhi barhti ja rahi hay Keep it up.
Love from Pakistan
hey harry, just practised the code that you gave us in the lecture, here is the code:
/*
flow of the program:-
1) we created a class named binary to store the inputted string from the user, which is then to be evaluated
calculate the further results.
2) We do this taking input from the user by the read function() and then by the nesting of the
member functions, we link that read() function to the check_binary() function wherein if the entered number
turns out to be a binary number.
3) Consequently, if our entered number was binary, we simply print that "valid binary number.".
4) Following this, we now link our check_binary() function to a compliment () function wherein the compliment
of a binary number and is calculated and finally printed by making use of the display () function.
flow-: read()-->check_binary()-->compliment()-->display()
*/
#include
#include
using namespace std;
// making a class binary
class binary {
string s;
public:
void read(void);
void check_binary(void);
void display(void);
void compliment(void);
};
void binary :: read(void){
couts;
// calling check binary inside of the read
// this is called nesting of the member functions
check_binary();
}
void binary :: check_binary(void) {
int i;
int iterator = 0;
int checker = 0;
for ( i = 0; i < s.length(); i++)
{ iterator += 1;
if (s.at(i) == '1' || s.at(i) == '0'){
checker +=1;
}
}
if (checker == iterator){
cout
bro you are like a god to every computer science student . Keep it up 🙂
Civil students also
Very easy to understand videos for beginners. Great work sir
Bahut badiya harry bhai❤❤ bahut hi achha aur knowledge gaining course hai🙌🙌🤟
Thank you sir for providing us such a informative cpp course with free of cost.I hearlty thank you ❤️.Its really helpful for me to brush up my c++ knowledge.Thanks a lot.God Bless u sir.keep growing
Rocking😎😎😎
Can you make a separate video for string? it is very hard to get the conceptual approach towards the string.
String is a data type
String s
Is same as int a
They both are variables to store something
course bhut shai hai bhiya thankuuu so much .... maine c kara hua hai aapse hi now learning cpp from u
😍 Awesome Your All Video Bro 😊
Apse Achha koi RUclips pe nahi sikhata.
Nice All Videos
ruclips.net/channel/UCGOOOImaCuFa59of3mDi21Q
And those people who don't know any other programming language need to be briefed about string and its functions!
I can't explain how helpful it has been proven to me.
Thank you so much 🥰😍
Brother please help me my s.length() function is giving error
Bahut accha explanation dia bhai👌👌thanks
Thanx sir for your videos they are really helpful..!
Congratulations for 400k subscribers 🥰🥰👍
Thank You Harry Bhai ❤❤
Learned C class and am now learning C++ is this a full course because I'm a beginner.
which language should i start after C++.
Araam Aram se dekho bhai sab smj ayega !
Thank you haary Bhai ❤
The sound of keys while typing 😫❤. Waiting for the time by which I can type with such a constant speed.
What is at here in for loop.
I am asking.
s.at(i).
s is class object.
at is .......?
i is for numbers.
it's for value at i'th position in string s
like we use a[ i ] in arrays .. it's s.at(i) for strings
You cannot say s is object untill u declare it...btw here s is string firstly then object
24:55 sir , chk_bin() function was more useful in display() in place of ones_compliment()
no as the ones_compliment() function changes the actual value of the string
maza aaa gaya Harry bhaiii!!!
Definitely interesting lecture harry bro❤❤❤😊😊😊.
Sir you are explaining awesomely can you teach core java?
Nhi
18:44 mai machine hoon
aur main student hoon
This reminds me of " Main gareeb hu" xD
mein gareeb hu
thank you , much appreciated
Thanks 👍👍 itna accha samjhane ke liye
11:14
what is difference between strlen(s) and s.length()?
strlen() is a C method while .length is a cpp method.
I'm fresher and I wrote my own program on this concept. And i really did it in 1 go. But to be honest I wached this video 2 times.
Thanks bro.
#include
#include //dnt knw why we use it here
using namespace std;
class newborn{
private:
string s;
public:
void read(void);
void check(void);
void display_it(void);
};
void newborn :: read(void){
couts;
}
void newborn :: check(void){
for(int i=0; i < s.length(); i++){
if(s.at(i) != '0' && s.at(i) !='1'){
cout
great dude how you doing now?
Awesome Harry Bhai kya padhaya hai is video me Maja aa gya
Harry bhai please cyber security ki playlist banaiye please 🙏🙏🙏🙏🙏🙏🙏🙏
28:25 ha bhai bht maza aa rha hai ❤bas aise hi courses laate rehna humaare liye kyuki aapse acha mujhe kisi ka samjh nhi aaya aaj tk
I observed a thing in this video that wasn't expected.
As the binary was incorrect, the remaining functions(b.ones_compliment and b.display)that was called in 'main' didn't run. Was it because of exit(0)? If yes, if I use exit(0) at any place in the program it will exit the program? Please someone help me!
I've got the answer and it is yes.
@@AshutoshKumar-fu6qe thanks....I also have this same doubt...
Your question cleared my doubt, arigato.
@@sankalpsen1607 Doitashimashite , me too learning Japanese and dream of going to Japan, great.
This is little bit complicated as compared to another🤨
He always knows what we are going to ask
very good harry bahi this video is too useful in online mode thank you so much keep it up
Finally😢😢😢😢😢♥️♥️♥️♥️♥️😍😍😍😍😍😍😍
Are you fully dependant on RUclips only
Awesome ❤
thank you so much sir ji.
// Day -14
// Tutorial-22
// Date -16/12/2022
// Time -23:52 to 17 dec 1:34 = 1hr 42min
// Topic -Nesting Of Member Functions In C++
We want more videos of this course.. who want press the like button 😊
we can use cout
Harry bhai is good teacher in computer technolgy in India.
Harry Bhai is video me almost 90 percent ya phir almost poora part samajh me aagya. As a beginner ,mujhe ye video thoda out of my reach laga.Aur Abhi Tak ke is playlist ke aare video me se mujhe is video me jyada struggle krna pada aur last me thoda sa unsatisfied reh Gaya...
But anyways whole playlist till now is very good and it's my 5 the day since I started this playlist.Abhi aur jyada speed badhana padega...
All this was just an honest reaction....
This is too tough than others day tutorial....
Thanks for posting such great content for free..... : )
To good bhaiya maza aa gya yr video me ....❤️❤️