Тёмный
No video :(

C Programming Tutorial - 8 - String Terminator 

thenewboston
Подписаться 2,7 млн
Просмотров 474 тыс.
50% 1

Source Code: github.com/the...
Core Deployment Guide (AWS): docs.google.co...

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 137   
@zedaculouz
@zedaculouz 7 лет назад
I wish i did not spend all that time in college when i could just watch these videos. You are simply awesome.
@psycho5187
@psycho5187 7 лет назад
me too dude
@arprince5784
@arprince5784 5 лет назад
Me too
@survivalguide5513
@survivalguide5513 3 года назад
@@ciprianghenghea7779 1
@hetaeramancer
@hetaeramancer 3 года назад
@@ciprianghenghea7779 what do you mean?? what language?? i prefer C because it's like the most fundamental like mastering C means you can master other languages quite easily, also because it's the most commonly used language for machines, and finally because it's Elon Musk's favorite language, i love that guy hehe
@ciprianghenghea7779
@ciprianghenghea7779 3 года назад
@@hetaeramancer Don't you like object oriented programming ??
@bstandsforbuilding5567
@bstandsforbuilding5567 8 лет назад
Annoying how my coding teacher makes us spend an entire semester learning the basics that he covers in this tutorial. Doing endless worksheets over the same thing, assignments, and e.t.c. But I had my little brother do these videos and he was able to do exactly what I could do in less than a few weeks. He had a few holes in his knowledge but I filled that in with ease. Now I'm annoyed that I even took those classes.
@pranab4928
@pranab4928 7 лет назад
Out of curiosity, what holes did you have to fill? - was it certain topics, or special usages of features, etc?
@rifatulkarim261
@rifatulkarim261 7 лет назад
WoW that was harsh!!
@CriticalTechReviews
@CriticalTechReviews 6 лет назад
Yeah seriously. What's missing? I'm not trying to waste money on a piece of paper I don't need when it's the skill that will get me paid...
@juangarassi6895
@juangarassi6895 6 лет назад
Actually sometimes you do need the piece of paper to earn the double amount of money that other employees do. I mean not when you're a junior programmer, but at higher scales. You can get better jobs, more responsabilities and of course more money. If you just want to program by yourself, and do things that you like or that you'd like to sell, then learning on internet is ok. I'm into computer's science at university, and they teach some things that usually you don't find in the internet because videotutorials makers think they're not relevant to programming, but they are, a lot. Resuming, you can learn in the internet and you'll be able to program, but probably the guy who learnt in an university will have a better job than you. If you don't care about that, and getting a good job aren't your goals, you'll learn faster on internet. You can watch 8 hours of youtube videos on the internet a day, without paying to anyone except your internet provider. Your professor wont be there 8 hours for you for free. I hope this helps you to make a choice and i'm sorry if my english is not clear enough, you can let me know in another comment.
@brendanmcadam8200
@brendanmcadam8200 7 лет назад
You are an Excellent Tutor man. Tanks so much for putting these up. Have never seen better!!!
@moayadyaghi
@moayadyaghi 5 лет назад
Tanks or Jets 🤓
@mazphamm
@mazphamm 8 лет назад
man ive done a whole intermediate class and never heard of the "shtring terminator", i guess i need to take the course again.
@revermore3959
@revermore3959 3 года назад
"Shtring" XDDDDD
@rozero123459gnh
@rozero123459gnh 5 лет назад
Just getting into C was super troublesome for me but your videos really broke down walls. Thanks!
@DICEMAN60
@DICEMAN60 7 лет назад
Once again Bucky, you are awesome. I couldn't make it without you.
@duranopaulo
@duranopaulo 11 месяцев назад
Year 2023 Bucky makes is easy to comprehend C. Thank you coming from the Cebu, Philippines.
@yipman214
@yipman214 8 лет назад
I'm so glad i found you Bucky Roberts (if that's your real name). You're awesome.
@sanskarsingh9538
@sanskarsingh9538 9 лет назад
How the heck am I able to watch your videos in 1080p..other videos hardly run on 480p..I guess I'm blessed
@muhammadrafay4743
@muhammadrafay4743 5 лет назад
Bucky you made my programming a lot better I made my projects in less than a week. Thanks man
@yichengwang9220
@yichengwang9220 9 лет назад
because I wanted to learn programming, I tried a lot of curses and this one is the one that's so easy to understand!! Thanks Bucky! You are, the beat programmer.
@achouraymenhacene4840
@achouraymenhacene4840 5 лет назад
thank you hhh lasst year i passed the year in university bcz of you ....... now i still watch i study from'em wish me luck this year also
@sahilvaidya8346
@sahilvaidya8346 3 года назад
thanks a lot sir.i passed my computer exam bcz of your videos
@elimfeng913
@elimfeng913 10 лет назад
seriously, thank you so so much! seems like most people in my course did programming before, and I was so confused. This is great help!
@leovaldez5203
@leovaldez5203 8 лет назад
Keep up the awesome work man...
@Dotrade
@Dotrade 8 лет назад
teacher,,,i appreciate all your efforts,,,i can't pay back ,,, you have got a great teaching policies,i am so proud of you.
@soumilyade1057
@soumilyade1057 7 лет назад
wel this video answered a query that I had. Thanks. you're the best teacher that one can ever have :)
@dhananjaymandalkar4746
@dhananjaymandalkar4746 10 лет назад
Hi Bucky, Your all tutorials are really excellent. I am greatly benefited from it, particularly for C , C ++ and Python. You have added two new tutorials for Python and Tkinter. Only one serious issue about newly added tutorials are, even in full HD (1080 P) , due to very small font size, code which you typed is little difficult to read. Your older python tutorials are easily readable. Thanks.
@knvsf2829
@knvsf2829 5 лет назад
you're worth Gold man
@prasanthyadla697
@prasanthyadla697 10 лет назад
code god _/\_.You helped me get a good grade in my programming course man,thanks a lot!
@dr.kennethbrewerphd1986
@dr.kennethbrewerphd1986 8 лет назад
This man teaches like I teach Thanks
@booperdooper6776
@booperdooper6776 8 лет назад
WHY HAVEN'T I SEEN THIS AWESOME AND COOL AND 28 YEARS OLD GUY THAT IS JUST SO AWESOME AND COOL AND 28 YEARS OLD BEFORE?
@jain9249
@jain9249 8 лет назад
its reaally so good to learn C from you, in academic it is taught as a burden of 100 kgs , Thnxx for the tutorial , Please tell us how to make some projet using C
@Zmunk19
@Zmunk19 9 лет назад
'shtring terminator'
@slimanemerkouche9029
@slimanemerkouche9029 8 лет назад
Read this first, and then I heard him the second time saying clearly, the 'shtring terminator', made me laugh though
@osamagamal495
@osamagamal495 7 лет назад
ugh :'D
@juangarassi6895
@juangarassi6895 6 лет назад
lol
@DESHIPrankerZ
@DESHIPrankerZ 7 лет назад
man i am in damn fan of him
@bestbuildpc
@bestbuildpc 9 лет назад
I m so happy to find u Thanks!!!
@dem8568
@dem8568 7 лет назад
Terminators are awesome and that's final.
@teawrld5976
@teawrld5976 7 лет назад
dude, you're awesome!!
@TAWPhotography
@TAWPhotography 8 лет назад
Keep up the Great Work :D
@astasuleo
@astasuleo 5 лет назад
i wish you could do those examples for micro C pro. Congrats for your work and appreciate your time.
@engqaanuuni2276
@engqaanuuni2276 5 лет назад
You are my teacher thank you
@gianlucadelillo8861
@gianlucadelillo8861 6 лет назад
Thank You, Bucky !!
@1cheeselova
@1cheeselova 6 лет назад
Funny coincidence, "Bucky Roberts" and my name, "Michael Beyer" both take up 13 characters + 1 more for the terminator to equal 14 in total.
@danielmatthews12312
@danielmatthews12312 6 лет назад
Wow
@dibyendubiswas3937
@dibyendubiswas3937 8 лет назад
What's your site's link.I can't find it.
@vividMario52
@vividMario52 10 лет назад
A string is a sequence of characters terminated at the first \0 / NUL terminator
@lucamasseroni7
@lucamasseroni7 5 лет назад
tell me where u live, i want to tanks u in real, i'm italina and i love that u speak so clear and expecially i love that u explain in such an easy way things that my universityt teache catn't explain in hours,u are saving my life bro
@marko-lazic
@marko-lazic 9 лет назад
sššŠŠtring ? :)
@reactdev101
@reactdev101 5 лет назад
You don't have to count an ending symbol \0, 13 characters will be enough for your name
@nayan.9703
@nayan.9703 2 года назад
Bro could have atleast increased font size Anyways great videos
@mosfet500
@mosfet500 8 лет назад
Hi, Thanks for the terrific series. Why do you use "void main()" with a "return(0)"? Why not just use "main()" with not return? Thanks, Rob
@nero512
@nero512 8 лет назад
+mosfet500 No one uses "void main()" with a return value. What the void keyword means is that there ain't no return value. Just as the other keywords such as double, int, bool etc; resembles the return type that's going to be used. And the reason "main()" won't work is because without a keyword infront you're trying to CALL an existing function and you can't call a function that doesen't exist right? So when making a normal function like this, there must be a keyword defining its return type. Examples; int function(){ return Integer; } bool function(){ return TrueOrFalseValue; } void function(){ }
@jasonheard2436
@jasonheard2436 7 лет назад
Thanks!
@world_tarvel
@world_tarvel 5 лет назад
Thanks Alot :)
@sharminakhtar1439
@sharminakhtar1439 6 лет назад
THER IS AN OPTION IN CODEBLOCK CRTL+SCROLL DOWN OR + FOR ZOOM THE CODE. YOU SHOULD HAVE USED THAT.
@mohsenforuozanmehr829
@mohsenforuozanmehr829 8 лет назад
So nice for me.
@thestalks4898
@thestalks4898 8 лет назад
3:40 "or there next to the P on mine".
@dolandtrump3655
@dolandtrump3655 7 лет назад
Sir,I have watched about 10 of starting videos but you don't tell what these things are like what are strings and identifiers,keywords or data types...you just teach directly how to use things .Please upload some videos on that too.
@meditationtube7572
@meditationtube7572 7 лет назад
at 5:05 when you were writing the printf thing, why is name written without "xxx" these since it is not an integer? or do we consider it as one because of the char name[14] we performed first?
@nukami
@nukami 9 лет назад
Terminator.
@Leverquin
@Leverquin 9 лет назад
i always get
@hitch4198
@hitch4198 8 лет назад
"shtwing temrminator"
@SebaJK7
@SebaJK7 9 лет назад
hmm. i am trying to code a very simple game, and it is going very well, but i need to know how to change the number of characters on a string at any time
@mwilliam027
@mwilliam027 7 лет назад
Isn't it impractical to count the characters in a text in order to declare a string as a char array, what about having a big paragraph ? Am I missing something ? doesn't C have an equivalent to String in Java ?
@siddhantaroy4243
@siddhantaroy4243 6 лет назад
what will happen if we use %c instead %s
@PunchineloPow
@PunchineloPow 7 лет назад
Im sure that array is 15 bytes long including the zero?
@world_tarvel
@world_tarvel 5 лет назад
int adjective; adjective= awesome; printf(" Bucky sir is simply %s" , "adjective");
@DontMindMyName
@DontMindMyName 5 лет назад
adjective = "awesome";
@ritikabhagwani5212
@ritikabhagwani5212 Год назад
Why did you get the code only after adding %s and why not any other symbol?
@praharshsingh2095
@praharshsingh2095 5 лет назад
EVERY THING IS AWESOME EXCEPT THE FONT SIZE XD
@karanlakhwani4098
@karanlakhwani4098 4 года назад
Please increase the size of keywords for your videos
@thaares
@thaares 9 лет назад
do i always need to put amount of bytes next to char name
@abhisargautam4917
@abhisargautam4917 4 года назад
Can't we use %c and all stuff...instead of %s
@briannguyen5757
@briannguyen5757 7 лет назад
I don't understand this part: char name[14] = "Bucky Roberts"; why does it have to be 14? It still works with any other numbers too. Someone help me please?
@briannguyen5757
@briannguyen5757 7 лет назад
oops i kinda get it now. it works with any numbers >14. so would it be fine like this?: char name[99] = "Bucky Roberts";
@SiddharthAwana10
@SiddharthAwana10 7 лет назад
yep thats right, here 99 or 14 is the size you have declared with the variable, that mean it can store upto that much amount of digits...
@omega7377
@omega7377 7 лет назад
I guess beacuse then you write a program you want to make such that the program runs optimised. You want to make it use smallest possible amount of memory.
@Gaer56
@Gaer56 5 лет назад
So if every character is separated, i can manage it with hex editor?
@inceptional
@inceptional 9 лет назад
Just scanning through your videos it seems you don't mention anything beyond creating mostly written output via the code (numbers and words etc), so I'm just curious; how and when would a game creator for example be able to create the actual graphics for a game? Maybe just calling in say a character image they'd already made in Photoshop for example and then use that as he player sprite in their game? OR, if this makes more sense, coding and creating a simple sprite yourself directly in the actual code... For now I'm not interested in how you'd go about executing further code to actually make that image/sprite do anything other than displaying as a static graphic when you execute your script. I'm just interested in getting an image you've either created or defined in code to display on-screen (which you do so quickly and easily with text).
@inceptional
@inceptional 9 лет назад
PwnageDev So; I'm trying to understand... How did people write the code to create the early video games on systems like the spectrum or whatever? Didn't people used to get literally printed pages of code inside magazines and they'd just type it in somewhere, then press "run" and they were playing simple but proper games? What extra code and/or stuff did that require and at what point does this code become useful for actually creating game type content? I would love to learn the fundamentals of programming but I'd also like there to be some actual use for it; that I care about.
@inceptional
@inceptional 9 лет назад
PwnageDev I'm still kinda confused where the transition/crossover point happens between learning this kind of old school type application of code, for people writing stuffy computer databases for banks and stuff (or whatever people did with code before they started using it for creative purposes), and code that I can actually directly use to build games for example (with nice graphics and stuff I can actually see)... Can you learn all of this stuff as part of C and just straight out do programming to make games from there, or is there something to learn here that you'd miss if you went straight into using a language like C with some kind of relevant game compiler?
@rameynoodles152
@rameynoodles152 9 лет назад
inceptional You can actually use C or similar languages to draw graphics to the screen; however, on modern PCs this is generally not the standard way to do it anymore. You can use C to draw to the screen using whatever API your OS provides. The OS's kernel is written in C or assembly and controls the hardware on your PC directly, so you have to write code that talks to the kernel to get things done because the OS provides a layer of protection so that you can't just easily fuck over hardware by writing bad code. This is usually done through the OS's provided API (ex: Win32 API for Windows). BUT, these are not the days of MS-DOS and Windows 95. Now, (and even somewhat back then) we have these awesome pieces of hardware called GPUs, which are a lot like CPUs except that they are designed to calculate computer graphics. These GPUs have a different set of instructions than your x86 based CPU does so you can't just use the same code to program them. Instead, there are some standard graphics APIs that the manufactureres of the GPUs have chosen to support that allow communication between your program and the GPU. The two most widely used are OpenGL and DirectX. These API's each have a simple language that allows you to write code for the GPU. The programs that you write in these languages are called shaders. Shaders allow you to make complex graphical effects using the power of the GPU. Now, as far as the actual graphics that you want to draw to the screen, you must still write that code in your language of choice, and use one of the Graphics APIs to send them to the GPU. You also can write assembly code for the GPUs but I really have no idea how all of that works. And also, remember that all the code you write in C or whatever and compile is only run on the CPU. All of the shaders is what is run on the GPU. But, anyways, if you want to program graphics, then you need to first know how to program in general, which is what this tutorial is about. And then you need to learn a graphics API like OpenGL (which i recommend btw as I believe it is easier to learn than DirectX). Hope this makes sense and gives you some insight into how this all works. :)
@inceptional
@inceptional 9 лет назад
Sean Ramey Cheers. Some interesting and useful stuff to think about there :-)
@kingarkamani1455
@kingarkamani1455 8 лет назад
+Sean Ramey got damn you said something bro
@akuma_168
@akuma_168 4 года назад
Why he used /n after %s??
@diegojimenez3138
@diegojimenez3138 9 лет назад
Can someone tell what character did he type in after {char name [14] } Line number 6 please?
@ramdhanuganguly8815
@ramdhanuganguly8815 6 лет назад
why we r not taking the word name in invited comma?
@bhavyasharma8812
@bhavyasharma8812 6 лет назад
Look bro in last video he defines int age; this means he is telling yr pc that age is an integer....Ok so since it is an integer(number) its not in inverted commas...nd in this video word "bucky roberts" was not a code he was judt trying to show us the importance of /0(string terminator)....Im still learning as well but i think thats yr answer....Correct me if im wrong :))
@viditgupta8249
@viditgupta8249 5 лет назад
your site is not opening... I don't know why ..everytime its coming that site is taking too long to respond
@ujjwalgupta5718
@ujjwalgupta5718 7 лет назад
I didn't understand the part char name[14] = "Bucky Roberts"; why it is 14 and what it is used? can anyone please help?
@dilanveracruz6483
@dilanveracruz6483 7 лет назад
I think it is "14" because, in order to make your program run faster you will have to use the less among of characters possibe, so it doesn't run too much memory. Then, his name "Bucky Roberts" (counting with the space and the \0) has 14 characters needed.
@withkapil5739
@withkapil5739 7 лет назад
please reply so you want us to creat a new project for every video or what
@danielmatthews12312
@danielmatthews12312 6 лет назад
why would it matter?
@kim8783
@kim8783 8 лет назад
how do you check to see if a number is positive or negative ?
@divijarora3091
@divijarora3091 8 лет назад
Why do you compare it to zero?
@ibrahimshaikh5432
@ibrahimshaikh5432 8 лет назад
not working
@Lelouch980
@Lelouch980 8 лет назад
whats the use of putting an extra slot for the string terminator? mine works perfectly with 13
@kingarkamani1455
@kingarkamani1455 8 лет назад
+Meekah Iman he made it 14 for if there's a bug or an error but it uses 13
@yingtang9073
@yingtang9073 7 лет назад
yeah when i do not include the string terminator, the"
@stolepop123
@stolepop123 7 лет назад
Does the forum still actually exist? how can i access it? Can anyone help? would be lovely if i could actually copy these things he uses here and play with it a little
@kuboshit
@kuboshit 7 лет назад
I recommend writing it yourself, this way you will make less mistakes when you will try to actually write something new yourself.
@stolepop123
@stolepop123 7 лет назад
Yes i already did. It's just much easier to check where each little %^£/ sign goes from a notepad than from youtube :)
@Dualgas
@Dualgas 7 лет назад
He has a few of them, including this one on his Github: github.com/buckyroberts/Source-Code-from-Tutorials/tree/master/C
@osifamosi9957
@osifamosi9957 8 лет назад
I dont get the intention of this. What is the use?
@osifamosi9957
@osifamosi9957 8 лет назад
+Osi famosi Ok i got it ^^
@Dotrade
@Dotrade 8 лет назад
+Osi famosi you need to get on the bout,,,,swim harder ,,,,practice,,%d,%s,..int,char,%f \t,\a,\
@fernandoborges3044
@fernandoborges3044 2 года назад
S2
@jamerson23
@jamerson23 10 лет назад
First
@Jacobs322SK
@Jacobs322SK 10 лет назад
OOOOOOOOOHH MYYYYYYY GOOOOOOOOD, no....
@HikikomoriDev
@HikikomoriDev 10 лет назад
int no_more_please() //code to stop people from posting such obscene commentary. { printf("It does not matter, please stop that, have a very nice day\a \"); return 0; }
@zMaNificationism
@zMaNificationism 10 лет назад
Arakmatzu gay
@HikikomoriDev
@HikikomoriDev 10 лет назад
Kim Jong Hard-un The function has no sexual orientation declared in it, so that would return an unhandled exception anyway. Btw, aren`t you supposed to be in bed recovering from that ankle fall you had? ...The media thinks your dead, ya know?
@jamerson23
@jamerson23 10 лет назад
Wtf just happened....
@texbsn7663
@texbsn7663 7 лет назад
sir u are awsome and u realy help me to backup my memory plz if u dont mind plz give me to ur wathapp number plz i am from india and i am a computer science engg. but resently sum type of resons i lose my mamory because i have mind fever plz give me some more tips about computer langauge
@essadikboyka3142
@essadikboyka3142 7 лет назад
hi god bless you Why increase by 2 when you tape your name thank you
@fatboycrew6649
@fatboycrew6649 7 лет назад
the space and the terminator counts as 2
@zhentrixcalipso2738
@zhentrixcalipso2738 8 лет назад
Hey dude, learn to use the damn zoom tool... common bro how come you dont know that
@jamesshaw6110
@jamesshaw6110 6 лет назад
Good series shame about how small the writing is tho :/
@unboxmodz8584
@unboxmodz8584 6 лет назад
name[5] seriously? you know how easy it is to overflow right?
@ibrahimshaikh5432
@ibrahimshaikh5432 8 лет назад
wrong program
@cholowao
@cholowao 8 лет назад
why say shtring]
Далее
C Programming Tutorial - 9 - I Need Arrays
5:47
Просмотров 478 тыс.
How I program C
2:11:32
Просмотров 728 тыс.
Is the C programming language still worth learning?
9:27
C Programming Tutorial - 11 - Getting Input with scanf
7:38
C Programming Tutorial - 26 - do while Loops
10:43
Просмотров 258 тыс.
Introduction to Network Interface Cards
16:47
Просмотров 10 тыс.
0x04 C - More functions, nested loops
1:10:55
Просмотров 2,9 тыс.
My 2 Year Journey of Learning C, in 9 minutes
8:42
Просмотров 590 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 353 тыс.