13. Strings in C++ | Guaranteed Placement Course | Lecture 13

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

КОМЕНТАРІ • 673

  • @ApnaCollegeOfficial
    @ApnaCollegeOfficial  4 роки тому +261

    Class 12 Python will be uploaded on Apni Kaksha Channel

  • @shreyaschavhan5522
    @shreyaschavhan5522 4 роки тому +561

    Strings : 0:10
    Coding Strings : 1:55
    Different type of ways to use string : 2:58
    - getline() function : 4:30
    - append() two strings : 6:00
    - clear() : 9:30
    - compare() : 10:20
    - empty() : 12:30
    - erase() : 13:51
    - find() : 15:40
    - insert() : 16:45
    - lenth() or size() : 17:55
    - substr() : 19:10
    - stoi() : 20:10
    - to_string() : 20:55
    - sort() - 21:40
    P.S - nincompoop meaning - a foolish or stupid person

  • @vaibhavsharma8465
    @vaibhavsharma8465 3 роки тому +39

    Rishabh is a peaceful soul x)

  • @yashpriyadeepkatta8823
    @yashpriyadeepkatta8823 4 роки тому +107

    My takeaway - FAMILY means FATHER AND MOTHER I LOVE YOU :) :)

  • @misaaldsouza
    @misaaldsouza 3 роки тому +131

    To add to this -
    To reverse a string :
    reverse( str.begin( ) , str.end( ) );
    so in case if you need your string in descending order you can use sort first and then reverse it OR if you're checking for a palindrome !

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

      reverse( str.begin( ) , str.end( ) );
      this performs::
      so in case if you need your string in descending order you can use sort first and then reverse it

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

      Do we need to include the algorithm header file here?

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

      @@misaaldsouza use #incude no need to include anything else

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

      ua-cam.com/video/5FsIa4Mp3ho/v-deo.html

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

      ua-cam.com/video/QTaiF8N6i3Y/v-deo.html

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

    Best way to give a overview of analogy and concepts in a short time. I have found it very useful.

  • @syeddanish9410
    @syeddanish9410 3 роки тому +42

    The girl was wrong for one point she said string end with terminating character '\0' but it character array which ends with '\0'
    Correct me if i am wrong. The guy has really good teaching skills

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

      Yeah bro u are right

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

      c type char array ends with \0 and strings end with \0 as well.

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

      @@aryanshrivastava8312 what c type char array? you mean as in c lang? what about c++?

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

      @@mohammadafnan8741 in c++ also. Terminating index is usually ended by \0 only.

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

      ua-cam.com/video/QTaiF8N6i3Y/v-deo.html

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

    sir i have actually no words to salute your teaching style and your knowledge----------brilliant material i got from your video.....plzzzz keep it up and always us this types of videos😇😇😇

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

    It took nearly a month for me to search for all these string functions from different sites . And these man explained it all in just 30 min !!

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

    Code is Here:
    #include
    #include
    using namespace std;

    int main(){
    cout

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

    I was having doubt and searched this now only
    And here video has been made for u 😂😂

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

    actually he is very fast explain
    All the concepts but mem is well define all concepts

  • @aditivibhute9457
    @aditivibhute9457 3 роки тому +142

    character arryas also end with '\0' as per your previous (char array) video. Kindly clear this confusion.

  • @anuragtyagi1111
    @anuragtyagi1111 3 роки тому +11

    When God come to help poor students ❤️

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

    all subtopics are covered in this video , thanks sir i got a lot of things from here.

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

    Bhaiya you are the best teacher in apna college....

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

    I love the Extro and intro of video super music 🎵🎶 and bhai is fast and furious in talking

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

    In 9:43 timestand when string abc input is taken why the whole string was obtained as output inspite of not taking getline function

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

      yes same question

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

      @@fitnessislifelong I think getline is used when we take input from user, not when we directly assign🙃

  • @jaduvala5921
    @jaduvala5921 4 роки тому +5

    Aman Bhaiya your team is doing a great job, the way the tutors of apna college teaching us is a revolutionary way of teaching a programming language. thanks

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

    sir G, maza agya prh kr apki video se... keep it up!! sara esa seedha demag me beth gya 😊

  • @annupahuja
    @annupahuja 4 роки тому +31

    It’s late dude😅 but on the 2nd thought iam gonna see it

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

    Thanks a lot for saving my lot of time .This lecture is very helpful for me .Thank you

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

    Smart work is directly proportional to success

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

    Apni koi string thi randomsy kaisy randomsy (21:39) OP bhaiya 💥💥

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

    Only thing i got in this lecture
    "Let's save it.....run it"

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

    one of my great experince to attend this one lecture throught outt hole course till date

  • @jappanmavani3132
    @jappanmavani3132 3 роки тому +10

    11:30 my output is completely different. while comparing the string it either shows -1 or 1 if you put any value in the string

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

      yes exactly
      I think its because difference of operating stystem

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

      @ALCO BEAST try comparing abc with abcdefgh you will recieve 5 as output

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

      ua-cam.com/video/QTaiF8N6i3Y/v-deo.html

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

      if we will take s2=abcd.......wxyz then only we will get 23 as an output

  • @ArvindKumar-ov3ly
    @ArvindKumar-ov3ly 3 роки тому +3

    Really a very nice Illustration of each and every point of string 🙏

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

    Shukr hai notes aagy iske😁

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

    Tooo good it help me to solve questions in hackerrank👍👍👍👍👏👏👏👏👏

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

    Great video and effort sir aur Chandigarh University ke against jane ke lie thanks, Thnks for ur support bhaiya

  • @negasonicteenagewarhead
    @negasonicteenagewarhead 4 роки тому +14

    while( I'm_alive ){
    cout

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

      Wrong code

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

      Error "I'm alive" not defined, are you really alive?

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

      What should I do?

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

      @@negasonicteenagewarhead while( im_alive )
      as the variable in while loop should be of one name separated with underscores not spaces

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

      But it's still giving error

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

    seedhi baat no bakwaas, thankyou you guys are amazing.

  • @thethirdperson7039
    @thethirdperson7039 4 роки тому +28

    Why am i crying.. bhaiya my emotional quotient is very low and the intrinsic monotonicity of video lectures which are loaded on us for nothing but completion of JEE syllabus plus my environment are disturbing... I'm good in studying but i just cant take this shit anymore bhaiya... At least that's what I thought before your video came! Thankyou bhaiya im seeing the bigger picture now
    Ps. Im gonna open my own school for . everyone when im your age! You'll see!
    Pps: bhaiya im typing this for the second time..

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

      i also have dream to open my school where the studies will be fun . and their will be no comparision between students. good luck

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

      @@pandey2818 that's awesome prachi! I wanna open a school where children of all societies, condition will learn to respect one another.. i mean beyond societal and economic barriers..
      Cuz i think wohi most imp seekh hai right?

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

      Very Nice😇🤟Just ignore your disturbing environment, & keep going, keep hustling little brother😇🤟Wishing you all the best for all your upcoming exams🙌👍

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

      think big

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

      @@thethirdperson7039 YAA THATS VERY IMPORTANT ALL THE BEST

  • @TranNguyen-mv6ln
    @TranNguyen-mv6ln 3 роки тому

    Thank you so much. I used to hardly dont know about how to use string, now because I learnt from your videos I know it and understand it better

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

    You're really legend Excellency....
    I really appreciate your great efforts....
    Your lecture is really highly conceptual ,Excellent work....
    "Apna college"is being making programming very simple in true sense...
    Great contribution..

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

    Awesome bhaiya,thank you so much for this to be free

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

    Bhaiya mzaa aagya aapse pdh ke

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

    Jo chiz is lecture mein sabse acche se yaad hui was the word - "nincompoop".😂😂
    But anyway lectures are best.❤‍🔥❤‍🔥❤‍🔥👌👌

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

    Ye teacher thapa technical ka hai i think...boom boom krte hai...😀

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

    serious bhaiya , you are vere level..huge respect to ur efforts

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

    @ayush thank u sir u r efforts make one day of first step of success..

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

    Thank you Sir & Ma'am😇👍🏻🙏🏻👏🏻 It really Helpfull☺

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

    Gajab timing hae yaar !!!

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

    App ka bahut bahut dhnyavad 🥰

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

    Let save it run it! Is in the loop statement

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

    It's very interested......... thank you 🙏🏻🙏🏻🙏🏻

  • @bageshwardham-1M
    @bageshwardham-1M 3 роки тому +4

    Thank you to the guys who is teaching in this video...you are just amazing sir❤ur teaching skills are awesome👌👏

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

    Thank You so much bhaiya... and #ApnaCollegeTeam

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

    ye banda saccha programmer hai, isko string input lene me maja aata hai

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

    aaplogg boht acha kaam krre .... aise logo ki jarurat hai ...

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

    best explanation

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

    Can't thank you enough for such amazing video.

  • @06_aditijain14
    @06_aditijain14 3 роки тому +10

    I have a doubt sir at 9:55 min when you added content to string abc with spaces then as u taught it should only output first word then how is it showing all words along with spaces when we haven't used getline function .. pls reply sir

    • @gsmdfaheem
      @gsmdfaheem 3 роки тому +18

      Actually bhaiya ne galat boldiya tha vahaan.
      We can add space while taking input in double quotes.
      Eg:1) string str = "i am a peaceful soul";
      2) string str = "IamPeacefulSoul";
      No problem in these two cases..
      But while accepting the input from the user(i.e., like cin>>str;) in this case the compiler don't accept spaces.
      So you have to use getline(cin, str); instead of cin>>str; to input that string from user with spaces included.
      I hope you understood.

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

      @@gsmdfaheem Thanks for clearing the doubt👍

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

      @@krishnasingh2520 My Pleasure

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

      ua-cam.com/video/QTaiF8N6i3Y/v-deo.html

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

      @@gsmdfaheem well explained brother, thnx

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

    very nice explanation about string.Thank you

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

    Bhaiya plzz launch Web development course soon...We are eagerly waiting for that..

  • @yashpatidar.8506
    @yashpatidar.8506 3 роки тому +1

    I use every function without including .

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

    20:10 Alahimdulillah moment🙏

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

    I liked the Strings in comparison of all ❤️

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

    Thank You so much Sir ,Due to this video i was able to solve string based question in TCS NQT Exam.

    • @AyushSingh-qr3go
      @AyushSingh-qr3go 3 роки тому +1

      Could you able to use string function because I have heard from so many sources that C++ STL is not allowed in TCS coding round

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

      @@AyushSingh-qr3go hello bro i was allowed to include string header file. My code was successfully compiled and clear all test cases.

    • @AyushSingh-qr3go
      @AyushSingh-qr3go 3 роки тому +1

      @@vishalchauhan9832 ok thanks 😊

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

      @@AyushSingh-qr3go you are welcome🙂

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

      ua-cam.com/video/5FsIa4Mp3ho/v-deo.html

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

    Love your video ❤️❤️❤️

  • @ManojGupta-xs2cv
    @ManojGupta-xs2cv 4 роки тому

    Great video bhaiya😉😉😉

  • @Harjotse
    @Harjotse 4 роки тому +6

    Pls provide us some extra questions sheet for each lecture .
    By the way you and your team is doing great work .

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

    append clear compare empty erase find insert length substr stoi to_string sort

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

    Bhaiya you are everything for me

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

    Thank u aman bhai and mam best explanation😍

  • @negasonicteenagewarhead
    @negasonicteenagewarhead 4 роки тому +5

    First😁😁
    Time complexity 10sec

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

    nincompoop reminded me of "Three Men in a Boat"

  • @ajayn6564
    @ajayn6564 4 роки тому +12

    C or C++ differences one vedio or those who want it hit the like

  • @uday-jf1yq
    @uday-jf1yq 4 роки тому +3

    Thank you sir
    For your efforts for us
    🔥🔥🔥

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

    Thank you soo much sir for this

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

    4:35 uske liye kya kar sakte hai, kuch nahi kar sakte😂😂😂😂👌

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

    Hello sir,
    Your teaching is excellent but sir yor use all functions in different different programs my opinion is all functions is use in a single program then students understand better..🙏

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

    11:14
    cout

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

      If the result is greater than then it would be any positive value depending on compiler similarly any negative value fr less than

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

    Excellent ❤️

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

    great explanation loved it

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

    The only things I observe tutor in this video is a good coder not a good teacher 😔😔
    We want all lectures from Microsoft wali didi ☺😍

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

    Very Great lecture and quite helpful . I've a doubt that what to do if we have to sort string when both uppercases and lowercases are there in string.

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 3 роки тому

    Thanks brother ..well explained..

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

    Maza aa gya thanks man❤️❤️

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

    Empty () = 12:34

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

    also be done like this ---------- s1+=s2;
    cout

  • @ARYANKUMAR-yc5tc
    @ARYANKUMAR-yc5tc 4 роки тому +1

    Aman bhaiyya jindabad!

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

    0:03 he said apni kaksha on Apna college that's why he's india's one of the best programmer xD

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

      Bhai....XD XD XD

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

      may be these videos were shot before starting apan college channel ig.. they were thinking to put all these on apni kaksha.. then suddenly changed their mind. and made a new channel . (I am not sure, Just guessing it)

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

    Sir. excellent thank you so much

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

    what find() returns if it cannot find the character or word we are looking for?
    mine is returning some big integer value.

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

    You all are the best ...!❣️ awesome teaching... thank you so much

  • @PujaSingh-tg3zr
    @PujaSingh-tg3zr 4 роки тому

    Thanks a lot bhaiya....🔥🔥

  • @DeepakKumar-tl6mb
    @DeepakKumar-tl6mb 4 роки тому +6

    Bhaiya aap Python kb upload karenge

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

    Such a great work

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

    Great content 🙏🙏🙏™️

  • @debajyotideba5001
    @debajyotideba5001 4 роки тому +6

    Who notice that ,the repetitive common word " hena" again and again 🤣🤣🤣😂😂😂😂😂😂😂😂😂

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

    You are lagging behind your timeline.

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

    good explanation sir

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

    u r awesom sir.

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

    Kya bawaal tareeke se samjhaya hai bae❣️❣️🤗🤗❣️🤣

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

    10:17

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

    really helpful thank you

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

    Very nice sir g

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

    All lectures are great but pls decrease the background audio