Buckys C++ Programming Tutorials - 71 - string Class and string Functions

  Рет қаралды 431,895

thenewboston

thenewboston

Күн бұрын

Пікірлер: 251
@xWendzy
@xWendzy 7 жыл бұрын
legend has it that the milkshake is still stuck in his throat.
@cloaky6973
@cloaky6973 3 жыл бұрын
*10 years passes * : .. um sorry guys i still have that milkshake stuck in my throat
@hackzgamezyt
@hackzgamezyt 3 жыл бұрын
10 years old yet the sound quality is better than alot of tutorials in 2021😂😂
@Kevin2341
@Kevin2341 11 жыл бұрын
Your videos are the best C++ tutorials on youtube!
@abab1247
@abab1247 3 жыл бұрын
No u
@AJddfx
@AJddfx 6 жыл бұрын
Amazing. I've been beating my head against my desk for the past half hour trying to figure out why my program wasn't running even at all. I decide to click on Bucky's tutorials, as I have done many times, and before the video even started, I had my answer. The education system truly amazes me.
@abab1247
@abab1247 3 жыл бұрын
you've been beating your meat against your desk for the past half hour? damn dude.
@justine.3416
@justine.3416 2 жыл бұрын
what
@mdlink623
@mdlink623 3 жыл бұрын
8:10 thats something i never thought id hear a youtuber say; thats why we love you bucky
@oyindaowoeye467
@oyindaowoeye467 11 жыл бұрын
I've concluded that Bucky is sponsored by McDonald's
@bostic8683
@bostic8683 8 жыл бұрын
lol soo true
@hicmacijom3117
@hicmacijom3117 5 жыл бұрын
He is helping them to hack kfc
@victoriadathan2675
@victoriadathan2675 5 жыл бұрын
Yes!! This video helped me out soooo much!!! Thank you from the bottom of my heart. You explained the concept of the getline function successfully. I just debugged a programming issue that I was struggling to solve for an assignment. Debugging is such an important skill in programming, especially for jobs. It is such a great feeling when you debug without anyone standing beside you!! Keep up the great vids and info!!!
9 жыл бұрын
I love how he mistypes.
@charlestheanimator1676
@charlestheanimator1676 4 жыл бұрын
Bucky I love how much better at teaching you are than my college prof X'D
@michaelzepeda5785
@michaelzepeda5785 6 жыл бұрын
I got a 100 on my computer science test because you. Thank you so much!
@AscendedCarrot
@AscendedCarrot 7 жыл бұрын
bcuky, my hampster thinks tuna sandichwedhd dare good. Thank you.
@robinorbitamusic7456
@robinorbitamusic7456 6 жыл бұрын
Lol..... you got it bro...
@Ki_kis
@Ki_kis 11 жыл бұрын
I just wanna thank you for all your videos!! Without them, I'd have no clue how to do C++. Keep them coming!
@カラスKarasu
@カラスKarasu 12 жыл бұрын
You can also print a character from a string just as you would do with an array. For example: string myString = "Hello World!"; cout
@imlolly6707
@imlolly6707 8 жыл бұрын
20/10 more video's to go! (You was nearly correct, just missed that /10, but hey, no problem!)
@muneebrai7956
@muneebrai7956 4 жыл бұрын
Bucky I bless you with my whole soul!! Man is a saviour
@jihudumieschool
@jihudumieschool 10 жыл бұрын
Thanks Bucky!! This is very useful to me!! God bless you!
@NeilRoy
@NeilRoy 10 жыл бұрын
An important note is there is no difference between a string of characters in C++ and in C. It's just that C++ has a string class with many very nice functions to help you easily handle them, but when it boils right down to it. A string is an array of characters, and the reason why they are more difficult to handle than integers or doubles etc... is that computers only deal with numbers. Period. Characters and strings are stored in your system as an array of numbers. Now in C and C++ you can define a *char* type, which is similar to an *int*, no problem, because a *char* is simply a byte sized (0-255 when it is unsigned) number. A string is an array of these characters and in C++ the string class has a slew of very helpful functions etc... to help you better deal with them. I say all t his because someone referred to outputting a c_str() in the last video as a "relic of C" which it is not, there is no difference in how an array of characters in stored in C and in C++ in memory. It's all just numbers in the end.
@noobmaster8731
@noobmaster8731 4 жыл бұрын
Hi. Im from argentina. You video helps me to resolve an exercise. Gracias!
@Alionwheels
@Alionwheels 2 жыл бұрын
It’s 2022 and it’s 11years ago tutorials helping me today ❤
@Summayyahh
@Summayyahh 12 жыл бұрын
Has anyone ever told you that you are a life saver?
@ChristopherJones16
@ChristopherJones16 9 жыл бұрын
I got a job at google after watching your tutorials! And I'm only 12! I now know twenty different languages .. And I'm just 12. Still crapping my britches... And working at google.
@imlolly6707
@imlolly6707 8 жыл бұрын
+Christopher Jones This seems...very legit xD
@NikorasuChan
@NikorasuChan 8 жыл бұрын
+Christopher Jones And I'm just 12
@octopuss2345
@octopuss2345 8 жыл бұрын
that's possible if your mother/father is adopted
@bostic8683
@bostic8683 8 жыл бұрын
WELL SEEMS LEGIT JUST AS LEGIT AS UR PROFILE PIC MUST BE A PIC OF UR DAD
@yashsoni501
@yashsoni501 8 жыл бұрын
Do you celebrate your birthday on 29th Feb?
@rich618
@rich618 5 жыл бұрын
thanks for your success bro i am blessed! your tutorial truly helped me with my C++ homework
@nedgillespie3406
@nedgillespie3406 4 жыл бұрын
you helped me get through high school and college
@ScibbieGames
@ScibbieGames 8 жыл бұрын
Guys. do #include (if on windows obviously) And in the for loop. write after the _cout_ function: Sleep(50); You're welcome
@chiengdorkcy4851
@chiengdorkcy4851 5 жыл бұрын
Mmmmm..........the man of the globe,programmer.Bucky,keep it in
@shipumiah2498
@shipumiah2498 11 жыл бұрын
Great video Tutorial Bucky, it really helped me understands C++. Thank you!
@decomorells2690
@decomorells2690 4 жыл бұрын
this should of literally been in his first ten tutorial vids rather then last XD
@craignichols9552
@craignichols9552 8 жыл бұрын
One thing that might be worth mentioning, rather than following all of this word for word and re-using cin for each example, if you don't want to comment out cin, do the following.. it'll clear the user input and allow you to take in new characters entered by the user. With c++ you need to clear the cin method before you can use it again in a working program... std::cin >> bucky; std::cout
@sshere16
@sshere16 5 жыл бұрын
Your video is very old but you teach good than new
@پروگرامینگبامن
@پروگرامینگبامن 5 жыл бұрын
i love to hear for always your beautiful SENTENCE (what is going on guys)
@abhradeep3283
@abhradeep3283 10 жыл бұрын
Thank you very much bucky.. this video on strings was very very very usefull it helped me out a lot.
@cptfryingpan2580
@cptfryingpan2580 4 жыл бұрын
u explained that so easily wow
@dslink2009
@dslink2009 13 жыл бұрын
Wow, you post so many vids!!! You are awesomeness!
@TheOrneryNerd
@TheOrneryNerd 13 жыл бұрын
So, what's the difference between string.size() and string.length() ??
@Idieyidot
@Idieyidot 7 жыл бұрын
Thank you for this! helped me out a lot :D and i like ur voice btw
@magsudhajiyev7810
@magsudhajiyev7810 10 жыл бұрын
Your explaining is just super!
@razeezar
@razeezar 7 жыл бұрын
I've been eating tuna sandwiches just over the last week. It only just occurred to me this weekend that it's Bucky's fault
@jaimerhoda5399
@jaimerhoda5399 10 жыл бұрын
I've determined that you do not know how to spell sandwich.
@Vendetta0005
@Vendetta0005 10 жыл бұрын
tuna sandwichwedhd hahahahahah XDXDXD!!!!!
@Adam-cn5ib
@Adam-cn5ib 7 жыл бұрын
santghitwch?
@AL-wc8oy
@AL-wc8oy 4 жыл бұрын
youh do'nt xcare
@abab1247
@abab1247 3 жыл бұрын
6:06 was he tryna spell "hampster" like that? or was he tryna spell "hamster" like the animal?
@techieturk
@techieturk 6 жыл бұрын
float omgwtf; void mcDonalds(haveTuna ,bbqsandmiches) cin>>milkshake>>endl;
@lijasssss
@lijasssss 13 жыл бұрын
You know that you dont have to use brackets if you only have one statement after the for, while and if, right?
@AnujSharma142
@AnujSharma142 12 жыл бұрын
ANY HELP???? i just don't get the drop down as you get like when you type s3.assign so thr is no drop down in my codeblocks.. m usind 10.05 version
@Vendetta0005
@Vendetta0005 9 жыл бұрын
You just got tuna sandichwed in high definition, son!
@dudecanner
@dudecanner 13 жыл бұрын
You are one AWESOME TEACHER!
@maheraalani719
@maheraalani719 10 жыл бұрын
How to find the documentary of the string class to read about the functions ?
@WW-ph1go
@WW-ph1go 7 жыл бұрын
oh my god this helped so MUCH thanks dude
@KazmirRunik
@KazmirRunik 9 жыл бұрын
Only "like 20 more videos" to go~
@pandacutiesuperstar
@pandacutiesuperstar 6 жыл бұрын
how would I add an array of strings along with a cin in a class?
@kite1160
@kite1160 8 жыл бұрын
Finished series.. Where do I go to keep learning more such as struct etc..
@DanTutorialsChannel
@DanTutorialsChannel 8 жыл бұрын
I have a few tuts on structs on my channel if you are looking for some info, I don't have much but better than nothing ?
@rbsupercool
@rbsupercool 11 жыл бұрын
**TUNA** is the most used term in bucky's life!! :)
@digvijayraut8607
@digvijayraut8607 5 жыл бұрын
Really good and understood the concept 🤩🤑
@poseidenjp1496
@poseidenjp1496 12 жыл бұрын
i am usig code:: blocks and i didn't include the string class but all the functions worked??
@GHAI007
@GHAI007 11 жыл бұрын
hi bucky, can you please tell me where I can find good tutorials for STL .I am looking for basic ones not 1000 pages book. Thanks
@FingersBlazin
@FingersBlazin 8 жыл бұрын
I'm wondering, why would one decide not to use namespace std? Is there any advantage for not using it?
@zexkanter9688
@zexkanter9688 7 жыл бұрын
old school
@namelessbrown
@namelessbrown 5 жыл бұрын
I think its because without it makes the program run faster or something like that.
@lambingsilog
@lambingsilog 5 жыл бұрын
How to fix 'was not declared in the scope'
@exxavectragnm2938
@exxavectragnm2938 7 жыл бұрын
Thanks bucky, your tutorials are so helpfull
@jrM5492
@jrM5492 6 жыл бұрын
is getline (); a built-in function that can be recognized by c++?
@lbomcarvalho
@lbomcarvalho 11 жыл бұрын
Nice nice videos bucky. I also have a question. Why the combination of cin >> bucky1 and getline(cin, bucky2) is kind of tight together on this piece of code below? #include #include //allow you to use string functions using namespace std; int main(){ string bucky1; cin >> bucky1; cout
@kashishgupta5125
@kashishgupta5125 8 жыл бұрын
plz help me with this : create a function to accept 2strings and return status whether are identical or not:
@pradyumnkejriwal3007
@pradyumnkejriwal3007 7 жыл бұрын
kashish gupta bool functionName( string a, string b) { if(a == b) { return true; else { return false }
@Qazqi
@Qazqi 12 жыл бұрын
Do you mean apstring as in the one used in AP exams? They're quite different.
@shamimsarker6230
@shamimsarker6230 6 жыл бұрын
Very useful Video,, :) :) :) Love from #Bangladesh..
@omarsameh7049
@omarsameh7049 9 жыл бұрын
Hi, what about if i wanna do string function that tells me if the password is valid or not for example the password should have at least 8 characters and and the password should consists of only letters and digits and the password should contain at least 2 two digits?? Please help cuz I'm so confused Best regards
@ijustwantapc1542
@ijustwantapc1542 5 жыл бұрын
what is the bucky for?
@MrMotionshooter
@MrMotionshooter 9 жыл бұрын
Hi Is there a way to send event to event hub using cpp
@dragons10000
@dragons10000 13 жыл бұрын
@Mrjohnchannel thanks mate. Happy new year
@princesinday6570
@princesinday6570 9 жыл бұрын
Hi, are you using the codeblocks program? Because the code is not running or is there something i need to do? BTW i am a newbie and studying c++
@puffbluesam021
@puffbluesam021 10 жыл бұрын
Thank you so much Sir Bucky!!!
@Dimitrios1738
@Dimitrios1738 11 жыл бұрын
Nice tutorial butI have a question, i haven't included the string header file but i can still use the getLine() function... why?
@salimahmedali9249
@salimahmedali9249 11 жыл бұрын
If you've used a library function that you haven't declared, your compiler implicitly does it....accompanied with a lil warning at times. Hope this helped.
@seandewar
@seandewar 10 жыл бұрын
Salim Ahmed Ali Actually, it's because the header includes some functions and objects from the header for its own class and function template code and et cetera. It's still better to include explicitly, however.
@travelwithpraveen6591
@travelwithpraveen6591 6 жыл бұрын
bro, any videos on linked list
@giladin1
@giladin1 9 жыл бұрын
thanks! How can i replace a char in a string with some kind of variable? example: "my name is Gil" i want to print "m* nam* i* gi*"------can you help
@rafaellalinde3154
@rafaellalinde3154 7 жыл бұрын
You the man Bucky!!
@CmdrGates
@CmdrGates 9 жыл бұрын
I wanted to create an output file that contains spaces i.e. (John W. Smith) and be able to read that file along with other data types (John W. Smith 54 Gun Owner ...). I tried using getline() but it only worked for the first entry inside of my while loop. Any help that you guys can give me would be GREAT !
@ishrakkhan22
@ishrakkhan22 12 жыл бұрын
hey what about linked list and trees
@allankreislersol2446
@allankreislersol2446 5 жыл бұрын
how about array string?
@giladin1
@giladin1 9 жыл бұрын
please! How can i replace a char in a string with some kind of variable? example: "my name is Gil" i want to print "m* nam* i* gi*"------can you help replace?resize?
@CycloneAce20
@CycloneAce20 9 жыл бұрын
***** string name = "Alin"; name.at(0)= '*'; cout
@jharris3729
@jharris3729 7 жыл бұрын
Very nice tutorial! Thanks
@dawnbugay7094
@dawnbugay7094 7 жыл бұрын
Is this will wprk in turbo c?
@pbrocket296GT3
@pbrocket296GT3 7 жыл бұрын
thank you! :) i have a question, how do you terminate and exit a program if the same value of cin was entered as input?
@zexkanter9688
@zexkanter9688 7 жыл бұрын
usa an if statement
@CloudCreative
@CloudCreative 7 жыл бұрын
what kind of IDE and compiler you use under Windows? :)
@Qazqi
@Qazqi 12 жыл бұрын
Sometimes headers are included in other headers. In this case, it's probably included in iostream somewhere. However, you cannot count on this behaviour. You should include what you need.
@tarunbalaguru2398
@tarunbalaguru2398 8 жыл бұрын
Bro!!!! You rock....
@peichen3332
@peichen3332 9 жыл бұрын
Thank you sir, helps a lot.
@PerturbedGoose
@PerturbedGoose 13 жыл бұрын
What's wrong with going over 10 minutes?
@annisa5213
@annisa5213 4 жыл бұрын
cant even focused on watching the whole tutorial cos i keep laughing every few seconds bc i was reading the comment first before watching the video
@scavengerno1
@scavengerno1 8 жыл бұрын
What IDE do you use? Do you have a tutorial on how to install it?
@RaRapidum
@RaRapidum 8 жыл бұрын
+Mohsin Azmi codeblocks, watch his first video in this series or simply google it
@FrivolousMatter
@FrivolousMatter 10 жыл бұрын
I dont know if its just my computer acting weird or what but there is something weird with the getline function...someone please explain this: code: (i have all the headers needed) string name; cin >> name; cout
@goddybrown7598
@goddybrown7598 9 жыл бұрын
***** try it in this order : it works for me :D #include #include//gives string functions using namespace std; int main() { string line; getline(cin, line); cout
@goddybrown7598
@goddybrown7598 9 жыл бұрын
***** FROM MY OWN UNDERSTANDING OF WHATS HAPPENING, WHEN YOU ENTER THE VALUE OF THE FIRST STRING VARIABLE, THE COMPILER IS GOIING TO READ AND STOP @ THE FIRST WHITE SPACE AND ANY WORD COMING AFTER THE COMPILER IS GOING TO ASSIGN (by assuming) IT TO THE getlin() for example::::: #include #include//gives string functions using namespace std; int main() { string name; cin >> name; cout
@dipsyteletubbie802
@dipsyteletubbie802 7 жыл бұрын
+friendOfTheWinds I'm more than 2 years late, but for anyone else: add cin.ignore(); before getline(cin, line); now it will work
@AhmedHadiPADI_scuba_instructor
@AhmedHadiPADI_scuba_instructor 8 жыл бұрын
what do i need if i wanted to implement my own String class ?
@5h1f7
@5h1f7 7 жыл бұрын
electricity, a pc(with OS) , a keyboard(or a mouse), minimum 1 finger, eyes and a brain
@AhmedHadiPADI_scuba_instructor
@AhmedHadiPADI_scuba_instructor 7 жыл бұрын
Pulver Paul Pulver Paul seems smart😍 dont u think i need you too cause i have everything you've mentioned as well as a condom that u'll like 👌
@5h1f7
@5h1f7 7 жыл бұрын
*insert noice* :D
@dhlehrenlos
@dhlehrenlos 7 жыл бұрын
pff i am using a stick and my mouth to write
@yadhunandhanr7590
@yadhunandhanr7590 7 жыл бұрын
i cannot get in to your website thenewboston.com/, why is it so?
@Reddragonkilla
@Reddragonkilla 11 жыл бұрын
Bucky your videos are amazing no doubt but could you make about 130 more of these on various things that aren't covered? :) Thanks
@williamrolandhernando8605
@williamrolandhernando8605 11 жыл бұрын
You teach people in a friendly way... cooll...
@lizaaslamchaudhry531
@lizaaslamchaudhry531 5 жыл бұрын
So here I'm after 8 years, thinking that I'm too late. World has already gone through this!
@abhisheksamboddu6580
@abhisheksamboddu6580 4 жыл бұрын
hey there u dont have to worry im a lot more late than you hehe
@abhisheksamboddu6580
@abhisheksamboddu6580 4 жыл бұрын
@General relativity huh yes
@guilhermesalome
@guilhermesalome 13 жыл бұрын
"woohohooow easy caps lock" ASHEUASHUEUHSAEUH his comments are always funny
@dragons10000
@dragons10000 13 жыл бұрын
how can i change the color of '//' ? cuz now its a grey and on white font i cant see it goodly and cant read well my side notes, please someone info me ill give away free cookies for everyone :) tnx
@fahadashrafofficial
@fahadashrafofficial 6 жыл бұрын
Hold on guys! only 2 tutorials left =D
@sterlingkxz
@sterlingkxz 12 жыл бұрын
I love your shameless typos
@alejoxsantana
@alejoxsantana 4 жыл бұрын
That milkshake do be thick doe 🤣
@errr-iw4lz
@errr-iw4lz 5 жыл бұрын
a string is different than an array of characters in that they have no set length
@bigmamatristana677
@bigmamatristana677 6 жыл бұрын
Once he got to the file section of this tutorial, the video's content started to get exponentially worse. But good explanation of the fundamentals in the earlier (1-60) sections
@Ace-gw4uk
@Ace-gw4uk 9 жыл бұрын
why dont you use linux ? Linux + Atom or Vim + C++
@imlolly6707
@imlolly6707 8 жыл бұрын
+Platwn Ace Because adobe cc products do not run on linux (atleast that is my reason to not go full linux)
@MassPickers
@MassPickers 9 жыл бұрын
do u live In boston
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 634 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
What staying up all night does to your brain - Anna Rothschild
5:37
Useful string methods in C++ 〰️
6:35
Bro Code
Рет қаралды 27 М.
My 2 Year Journey of Learning C, in 9 minutes
8:42
VoxelRifts
Рет қаралды 683 М.
Buckys C++ Programming Tutorials - 56 - virtual Functions
9:19
thenewboston
Рет қаралды 378 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН
Buckys C++ Programming Tutorials - 35 - Passing Arrays to Functions
7:59
Learning C# In A Week... Otherwise I Fail University
9:04
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН