Тёмный

CS50x 2024 - Lecture 2 - Arrays 

CS50
Подписаться 1,8 млн
Просмотров 190 тыс.
50% 1

***
This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.
***
TABLE OF CONTENTS
00:00:00 - Introduction
00:01:01 - Story Time
00:06:03 - Compiling
00:28:40 - Debugging
00:47:27 - Memory
00:52:37 - scores.c
00:57:39 - Arrays
01:13:59 - Strings
01:33:12 - String Length
01:44:33 - uppercase.c
01:50:05 - Command-line Arguments
01:57:58 - Cowsay
01:59:44 - Exit Status
02:05:48 - Cryptography
***
HOW TO SUBSCRIBE
ru-vid.com_c...
HOW TO TAKE CS50
edX: cs50.edx.org/
Harvard Extension School: cs50.harvard.edu/extension
Harvard Summer School: cs50.harvard.edu/summer
OpenCourseWare: cs50.harvard.edu/x
HOW TO JOIN CS50 COMMUNITIES
Discord: / discord
Ed: cs50.harvard.edu/x/ed
Facebook Group: / cs50
Faceboook Page: / cs50
GitHub: github.com/cs50
Gitter: gitter.im/cs50/x
Instagram: / cs50
LinkedIn Group: / 7437240
LinkedIn Page: / cs50
Medium: / cs50
Quora: www.quora.com/topic/CS50
Reddit: / cs50
Slack: cs50.edx.org/slack
Snapchat: / cs50
SoundCloud: / cs50
Stack Exchange: cs50.stackexchange.com/
TikTok: / cs50
Twitter: / cs50
RU-vid: / cs50
HOW TO FOLLOW DAVID J. MALAN
Facebook: / dmalan
GitHub: github.com/dmalan
Instagram: / davidjmalan
LinkedIn: / malan
Quora: www.quora.com/profile/David-J...
TikTok: / davidjmalan
Twitter: / davidjmalan
***
CS50 SHOP
cs50.harvardshop.com/
***
LICENSE
CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
creativecommons.org/licenses/...
David J. Malan
cs.harvard.edu/malan
malan@harvard.edu

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

 

17 май 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 160   
@dependentu40
@dependentu40 4 месяца назад
I love how David first shows us how things are done in the old-school way as well as the logic behind it, then slams those teachings in by revealing some sort of library that makes our lives 10 times easier 😆
@grindinguy
@grindinguy 3 месяца назад
The best university in the world still doesn't have air conditioning to cool David. I'm sweating watching it.
@ToniusPlays
@ToniusPlays 3 месяца назад
I thought about that too, but it's probably the multiple lighting spotlights pointing straight at his face. If they are not LED models, they tend to get very hot, even if the air is on.
@nightspicer
@nightspicer 3 месяца назад
@@ToniusPlays that's what I was thinking, I wonder why they wouldn't switch to LEDs since they'd be way more power efficient, especially at his power
@yenthompson9471
@yenthompson9471 2 месяца назад
Stages are always hot.
@yenthompson9471
@yenthompson9471 2 месяца назад
@@nightspicerit’s because it’s also a stage, and on stages, LED lights just can’t quite do the specific things needed for stage lighting, and not to the same level of ease as stage lighting. Like LEDs can definitely change color and stuff, but it requires a lot more extra tech and extra STUFF that stage lights just don’t need. Plus it’s a lot more expensive to get the right level of programmable LED lights that can do. It’s only been recently in the last few years that really good LED stage lighting has hit the scene. And Harvard might be super prestigious, but The Arts funding is always going to be on the lower end of the priority list and replacing the entire lighting system (and training/teaching how to use this new tech) just isn’t cost effective, especially since the industry as a whole hasn’t transitioned to LED lighting so students learning LED lighting techniques would not be as useful in the real world vs if they were learning what is actually in use.
@fuckbitchesgehmoney
@fuckbitchesgehmoney Месяц назад
@@ToniusPlays he is also running around on stage while seemingly having to project his voice quite a bit.
@mehdiyahiacherif2326
@mehdiyahiacherif2326 4 месяца назад
i have 5+ years of dev experience + 5 additional years in uni , but still this is good to see
@apolmedrano3914
@apolmedrano3914 3 месяца назад
Amazing hope to be on your status one day
@thelazynoob_1233
@thelazynoob_1233 2 месяца назад
really reassuring, thanks for the comment, makes me want to keep going
@zawepygler1223
@zawepygler1223 Месяц назад
I liked the detail about 72, 73, 33 used earlier without context and then having them as result changing variables from chars to integers and getting 'HI!' :)
@jonaswetzel9213
@jonaswetzel9213 3 месяца назад
talking out loud to an inanimate object is such great advice, i remember when i was young how often i would ask my parents stuff and as soon as i said it the answer was clear as day lol
@fenneck9676
@fenneck9676 4 месяца назад
I do really love the fact even if he is a teacher and a great programmer, he make mistake aswell. That make me more confident than even after years and years of programming you going to always make mistake even the basic one and you don't need to feel you are bad at programming.
@d.k.1545
@d.k.1545 4 месяца назад
100 percent agree
@underlegengaukler
@underlegengaukler 3 месяца назад
No your just bad
@d.k.1545
@d.k.1545 3 месяца назад
@@underlegengaukler you're** bad
@apolmedrano3914
@apolmedrano3914 3 месяца назад
​@@underlegengauklergot yo ass
@OfficialCodeVoyage
@OfficialCodeVoyage 4 месяца назад
This course is killing all paid courses so far) Excited to see what's next!
@GCKteamKrispy
@GCKteamKrispy 4 месяца назад
As someone said: "You pay for the piece of paper and not for knowledge, knowledge is always free"
@-es2bf
@-es2bf 3 месяца назад
This is fundamental knowledge that is typically taught in most high schools, at least in Europe. I often wonder why Americans would willingly accumulate a lifetime of debt to acquire such a basic understanding of computers.
@robloxpants
@robloxpants 3 месяца назад
lol an american computer science degree is not a "basic understanding of computers" did you think this was an advanced class? @@-es2bf
@therealist2000
@therealist2000 3 месяца назад
@@-es2bfunfortunately it’s much more difficult to get a job without a degree.
@atajuan
@atajuan 3 месяца назад
I think way of teaching is so important, it is really hard to understand fundamentals and CS50 is great @@-es2bf
@jrupp2823
@jrupp2823 9 дней назад
best lecture so far this was so fun
@JulioCSFilho
@JulioCSFilho 12 дней назад
What an amazing teacher
@kent1k359
@kent1k359 8 часов назад
living legend
@botify9400
@botify9400 3 месяца назад
The video covers the use of integers to calculate averages, the importance of using floats for accurate division, and the introduction to arrays in C programming. It also discusses the compiling process, debugging techniques, and the representation of strings as arrays of characters in computer memory. The importance of exit status codes, cryptography, and encryption concepts are also explained. 00:00 Exploring Reading Levels and Compiling Code 01:03CS50 week 2 begins with a story time activity to explore reading levels and writing code. 01:27Volunteers read different stories to determine the reading levels and discuss the characteristics of the text. 07:05The video transitions to discussing compiling code and the role of the make command in running a compiler. 08:49 Understanding Clang and Compiling Source Code 08:49Clang converts source code to machine code, but lacks user-friendliness. 09:16Clang defaults to naming output file 'a.out', which is not user-friendly. 14:59Compiling involves pre-processing, compiling, assembling, and linking. 17:41 Understanding the Compiling Process in C Programming 17:44The prototype for get_string is defined inside cs50.h. 19:30Preprocessing, compiling, assembling, and linking are the four steps in the compiling process. 24:22Compiling converts C code into assembly language, which is then converted to 0's and 1's in the assembling step. 26:27 Implications of Source Code to Machine Code and Debugging Techniques 26:31Compiling code implies potential for decompiling it, reversing 0's and 1's to source code. 27:11Reverse engineering machine code back to source code is challenging due to loss of variable and function names. 32:53Debugging techniques like using printf and helper functions are essential for identifying and fixing bugs in code. 35:17 Debugging with a Debugger: A Step-by-Step Guide 35:17Using a debugger to step through code line by line and understand its execution. 41:47Setting breakpoints to pause execution at specific lines of code and inspect variables. 42:54Stepping into functions to understand their internal execution and inspect variable values. 44:10 Debugging Techniques and Memory Representation in C 44:10Using debuggers like debug50 and VS Code's debugger can help visualize code execution step by step. 45:52Rubber duck debugging involves explaining code out loud to an inanimate object to identify logical errors. 51:53Memory in computers is represented as a canvas of bytes, and different data types occupy different amounts of memory. 53:03 Understanding Arrays and Memory in C Programming 53:03Using integers to calculate average of scores. 53:27The importance of using floats instead of integers for accurate division. 57:46Introduction to arrays and their syntax in C programming. 1:01:52 Improving Code Design and Working with Arrays 1:01:52Clearing the terminal and making scores again. 1:02:38Using a loop to improve code design and avoid repetition. 1:03:11Explaining the use of arrays and their indexing in C programming. 1:09:36Addressing the issue of calculating the length of an array in C. 1:10:43 Understanding Arrays and Strings in C 1:10:43Average function iterates over an array, adds up numbers, and divides by total number of numbers. 1:11:10Declaring a variable called scores of size n and iterating through the array. 1:18:35Exploring the concept of strings as arrays of characters in C. 1:19:34 Understanding Strings and Memory Representation 1:19:37Strings in C are represented as arrays of characters, and the computer uses a special sentinel value to indicate the end of a string. 1:21:07The sentinel value at the end of every string in a computer's memory is all 0 bits, indicating the end of the string. 1:23:48In C, strings are represented as arrays of characters, and the NUL value is used to terminate strings, ensuring proper memory representation. 1:28:23 Understanding Strings and Arrays in C 1:28:24A string is an array of characters. 1:29:54Arrays in C are zero-indexed and can be manipulated using loops. 1:33:30Demonstration of finding the length of a string and modularizing it into a function. 1:37:10 Exploring C Libraries and Header Files 1:37:10Understanding local variable scope in C 1:37:43Exploring the string.h library and strlen function 1:41:54Optimizing code efficiency by avoiding redundant function calls 1:44:58Using conditional statements to convert lowercase characters to uppercase 1:45:59 Using Command Line Arguments in C Programming 1:46:03Explaining how to print a character without a new line and force it to uppercase 1:46:21Leveraging ASCII chart to convert lowercase to uppercase without using CS50 1:50:06Introduction to using command line arguments in C programming 1:54:50 Understanding Command Line Arguments and Exit Statuses in C Programming 1:54:57Command line arguments allow for user input when running a program 2:00:08Exit statuses are special return values from a program, with 0 indicating success 1:56:31Using conditional statements, error checking can be implemented based on command line arguments 2:03:43 Understanding Exit Status Codes and Introduction to Cryptography 2:03:43Understanding exit status codes in C programming and the significance of return values. 2:05:58Introduction to cryptography, encryption, and the concept of plaintext and ciphertext. 2:07:15Explanation of simple ciphers like the Caesar cipher and the concept of keys in encryption.
@wallacefalanGmail
@wallacefalanGmail 2 месяца назад
Currently retired and with 40 yrs tech exp but have been enjoying this. Moving on to 3rd session
@martinepstein9826
@martinepstein9826 Месяц назад
2:09:30 In case it isn't obvious, the nice thing about rot13 is that decryption is the same as encryption. You're adding 13 either way.
@mr_riyajath
@mr_riyajath 4 месяца назад
Just finished , learnt so much in this.
@big123lak
@big123lak 3 месяца назад
this course pretty cool I just started coding about a 2 month ago I pretty much know most of this stuff so far but I wanted to go thru all the exercises for any extra practice and info I might missed
@mezumchran4162
@mezumchran4162 3 месяца назад
oh my goodness,this is the best course i ever taken!and the outro is so expressive!really thanks,david!
@ToniusPlays
@ToniusPlays 3 месяца назад
Thank you, David
@veronicavids
@veronicavids Месяц назад
This is my intro to coding, and I couldn't be happier (:
@drawnsequence
@drawnsequence 3 дня назад
Mr. Malan is a fantastic presenter
@antonioskokiantonis7051
@antonioskokiantonis7051 4 месяца назад
Awesome stuff!
@MatVenuZ
@MatVenuZ 4 месяца назад
This is fantastic.
@BlaseAnDerHand
@BlaseAnDerHand Месяц назад
pure gold. of to the next one. after pset 2
@ProGamer2001
@ProGamer2001 25 дней назад
1:42:34 Actually, in C, the condition of a loop is evaluated before each iteration. So, if we assign a function to a variable and use that variable as the condition inside the loop, the function will be called each time the loop condition is evaluated, not just once
@ProGamer2001
@ProGamer2001 25 дней назад
Ps: I don't want to be rude; I just thought it might be helpful to clarify.
@alainrouleau
@alainrouleau 2 дня назад
I think it depends on the compiler you're using such as GCC, Clang, etc. Some compilers are "optimized" and smart enough to figure out that you only need to call the function once. And, from what I understand, certain functions are automatically optimized or recognized by the compiler when inside a loop such as the strlen function, for example. I guess, though, you would have to compile the C code and look at the Assembly code to see if the function call has actually been optimized or not?
@sahilvermaH
@sahilvermaH 4 месяца назад
1st lecture was pure fun , but lecture 2 was hard.
@sabih__
@sabih__ 2 месяца назад
Are you doing all the problem sets from the esX website. I think they make this course 10x better as it makes sure you practically apply what you've been taught in the lecture
@abdullahiabdiaziz8197
@abdullahiabdiaziz8197 4 месяца назад
Thanks ❤❤
@bobbyG883
@bobbyG883 3 месяца назад
This is very usefull content.
@WizeChoice
@WizeChoice 2 месяца назад
Amazing 👉🏽✨✨✨
@carnap355
@carnap355 3 месяца назад
this is good i cant be bothered to learn c on my own but this is entertaining so im watching it
@davidomar742
@davidomar742 2 месяца назад
Wasting ur time if just watching lmao
@diegomaterano6352
@diegomaterano6352 3 месяца назад
35:50 JAJAJAJAJAJAJ. I might look simple and stupid but this little details make the learning process better
@nightspicer
@nightspicer 3 месяца назад
this was a hilarious bit of the lecture
@ODAIR_SCTY_OFC
@ODAIR_SCTY_OFC 2 месяца назад
So good
@Nrjrkeofhevdkendb
@Nrjrkeofhevdkendb 2 месяца назад
Respect
@oba_fcb4748
@oba_fcb4748 25 дней назад
1:23:00 But in JavaScript if we create a string and the trynna access it like an array like: name[0], we can't access anything after the last character??
@MubashirShehzad
@MubashirShehzad 4 месяца назад
Thabk you
@nitin_kashyap1926
@nitin_kashyap1926 4 месяца назад
I have been using rubber duck debugging without knowing about it, I talk to myself what is program is doing and believe me it's really helpful XD.
@SwampyColorado420
@SwampyColorado420 25 дней назад
Imagine going on stage for cookies and getting a book instead.
@layssaribeiro-oj9fd
@layssaribeiro-oj9fd 11 дней назад
Yeah, I was sad for them lol
@thewaterwasfine
@thewaterwasfine 2 месяца назад
1:35:11 if you start counting with 0, why does it output that David = 5? isnt the last d at index position 4? and its not counting \0 so isnt the answer 4?
@ninevolt
@ninevolt 2 месяца назад
try using the rubber duck debugging method (see 45:55) and work though an example line by line! to save time you can create a shorter example, such as if the user inputs "Bob": n starts at 0. • 1st time through while loop: name[0] = 'B', so while loop condition is met, so we execute n++. Now n=1. • 2nd time: name[1] = 'o', n++ so n=2. • 3rd time: name[2] = 'b', n++ so n=3. • 4th time: name[3] = '\0', which causes the program to break out of the while loop. so n gets printed out as 3. hope that makes sense, let me know if not!
@gablepeacock
@gablepeacock 4 месяца назад
On the example starting at 1:10:00, is “length” not supposed to be assigned a value?
@dzjin
@dzjin 4 месяца назад
It's a prototype function, it's basically telling the program that this function exists and we will be using it so if you call it earlier in the code before what it does is defined the compiler won't spit errors out at you
@ZeroZeppelin
@ZeroZeppelin 3 месяца назад
But whats the meaning of “length” in the function? Where is came from?
@ethansilverstein26
@ethansilverstein26 3 месяца назад
@@ZeroZeppelin length was the amount of numbers. In this case it was the constant N, which was 3. If you were to implement this function into your own program, you could put whatever the size of your sample is.
@abdullah.al.Jubouri
@abdullah.al.Jubouri 3 месяца назад
كورس فخم
@zawepygler1223
@zawepygler1223 27 дней назад
So anyone know what lightbulbs had encrypted in them? I don't think I can see the binary from the video.
@Aman-fz1ew
@Aman-fz1ew 3 месяца назад
the quality of content is just next lvl .
@martijnb3381
@martijnb3381 3 месяца назад
You can calculate the length of an array on the stack: #define ArraySize(X) ((int)(sizeof(X)/sizeof(X[0]))) The speaker was probably mistaken with a heap array.
@darksider6113
@darksider6113 2 месяца назад
Only if you are using it in the same function, Let say you pass the array to a function only the pointer to the first element were send to the function actually and you lose the how much size of a array is
@martijnb3381
@martijnb3381 2 месяца назад
@@darksider6113 Yes! If the parameter is a pointer (usually should be), then 'sizeof(pointer)' just alwas returns 4 or 8 Bytes.
@LucasAleatorioRandom
@LucasAleatorioRandom 2 месяца назад
Why does the cs50 and stdio are saved in .c, why didn't it save in binary? In that way they could skip the first 3 steps, and just be linked to your code
@MrSa30kumar
@MrSa30kumar 4 месяца назад
Yeahhhhhhh 🎉🎉🎉🎉🎉🎉
@hasibahmad297
@hasibahmad297 2 месяца назад
It feels we will grow older with Mr. David Malan
@thelazynoob_1233
@thelazynoob_1233 2 месяца назад
lecture 2, gl to everyone
@javeriafayaz9750
@javeriafayaz9750 2 месяца назад
Can anyone tell me how to solve the undefined reference to get_string? I have downloaded the cs50 library but stll can't fix the error
@sarathbabu4091
@sarathbabu4091 3 месяца назад
i have a question if CS50.h is stored somewhere else as cs50.c then if i save some other file in the same name will it not confuse with that file?
@darksider6113
@darksider6113 2 месяца назад
No, the compiler, in this case clang will only look for a specific directory for the cs50.c which is configured to look for
@rishabhpurohit2663
@rishabhpurohit2663 3 месяца назад
where is the value of int length declared? 1:13:20 argc == 2? didn't get. 1:56:12
@lospokkes
@lospokkes 3 месяца назад
length is a value that you pass to the function, when you call the function in line 22 "average(N, scores)", you declare length on the function, "int length" is N. argc holds the amount of arguments the user types. In this case, ./greet david, ./greet is 1, david is 2. argc==2, is just "Is argc equals to 2"
@TheDasturchi
@TheDasturchi 4 месяца назад
guys can anyone tell me is that same with 2023 one, because I have begun already in edX?
@m7medgaming836
@m7medgaming836 4 месяца назад
yup
@stringssetc
@stringssetc 4 месяца назад
Almost same with just new students!
@semesoff
@semesoff 3 месяца назад
David J Malan is perfect person
@ineedtobestudyingrightnow
@ineedtobestudyingrightnow 17 дней назад
Personal Bookmark 48:00
@Dimas5
@Dimas5 2 месяца назад
I don’t remember void meow(void). What does that do?
@user-xe8ci8uq6y
@user-xe8ci8uq6y 4 месяца назад
2024 🎉
@MatthewIrizarry-4
@MatthewIrizarry-4 4 месяца назад
C doesn’t have a string type by default, it is implemented in the cs50.h file right?
@dependentu40
@dependentu40 4 месяца назад
yep
@alefoelfo
@alefoelfo 4 месяца назад
We also want some snacks here!
@robodurica
@robodurica 4 месяца назад
1:13:52 - i wish i could have those snacks too :( but dont worry! see you in ten!
@quincycostello6726
@quincycostello6726 Месяц назад
Get this man a towel
@AqaDragon
@AqaDragon 4 месяца назад
❤❤❤
@cameronvincent
@cameronvincent 4 месяца назад
just went outside no rubber duck was there false advertising
@nishmagajapersad4833
@nishmagajapersad4833 3 месяца назад
Can anyone help me with codespace restart
@juli.72
@juli.72 2 месяца назад
35:56 that made me laugh so hard lol
@l30n.marin3r0
@l30n.marin3r0 2 месяца назад
I just got back to these because it's amazing the amount of things that can happen in just two months and I cannot, for the life of me remember how it was that I was able to do everything in the command line using only vim, node and virtual environments xD And I really do not feel like learning all over again as I remember it took quite the amount of time and I had to install Arch Linux, also lost all of my music files because this laptop is obscenely small and weak. Should have got myself something better when I had the chance
@thatirritatingguy5350
@thatirritatingguy5350 4 месяца назад
What book did the third kid get?
@paolaReina9684
@paolaReina9684 4 месяца назад
"1984" by George Orwell
@marveII0us
@marveII0us 4 месяца назад
Wow
@chitranchakraborty7900
@chitranchakraborty7900 3 месяца назад
1:19:00
@alexandredias1272
@alexandredias1272 3 месяца назад
1:14:08
@Pepem.94
@Pepem.94 Месяц назад
i just noticed i had a duck on my desk all along, literally.... just didnt think it was meaningful when i first saw the duck in the course`s cover
@robodurica
@robodurica 4 месяца назад
1:50:00
@white-listochechki
@white-listochechki День назад
47:00
@sritej9757
@sritej9757 2 месяца назад
Intro music feels like a cult movie 😂
@Onyx-it8gk
@Onyx-it8gk 29 дней назад
He literally gave her a Dr. Seuss book 😂🤣
@itachismain1127
@itachismain1127 3 месяца назад
48:01
@lmnts556
@lmnts556 2 месяца назад
Thanks for all the material, this is great! However I would refrain from using cs50.h as a library as it hides C's real code and its not a standard library. It quickly becomes useless when one is back at home with just C.
@davidomar742
@davidomar742 2 месяца назад
this is week 2 bro. Ur not special
@lmnts556
@lmnts556 2 месяца назад
@@davidomar742 They should not be using self made libs, they should be using standard libs that comes with c. It is an abstraction that is not needed. Your mom is special to me.
@layssaribeiro-oj9fd
@layssaribeiro-oj9fd Месяц назад
​@@lmnts556"your mom is special for me" 😂😂😂 are you Brazilian?
@lmnts556
@lmnts556 Месяц назад
@@layssaribeiro-oj9fd Why would I be Brazilian, they do not even know how to communicate in English.
@layssaribeiro-oj9fd
@layssaribeiro-oj9fd Месяц назад
@@lmnts556 there are Brazilians that speak English. I thought you were Brazilian because it's common in Brazil to joke about friends' mom
@limitsatinfinity4393
@limitsatinfinity4393 Месяц назад
I want a rubber duck too :(
@hankhan5629
@hankhan5629 Месяц назад
please do intermittent fasting for our longevity,mr. professor.
@d.k.1545
@d.k.1545 4 месяца назад
isnt it ironic that the AMERICAN ASCII chart's first value is Zero in German (Null) and not in English? xD
@d.k.1545
@d.k.1545 4 месяца назад
(and nul in Dutch)
@user-mr-m12312
@user-mr-m12312 4 месяца назад
Interesting, didn't know null is zero in German. How do you distinguish in German between null which is zero and null character or null pointer? By context?
@layssaribeiro-oj9fd
@layssaribeiro-oj9fd Месяц назад
​@@user-mr-m12312I think they have another word for null haha
@heliaspincemin386
@heliaspincemin386 2 месяца назад
can i get a duck to?
@syedzainulabideen4455
@syedzainulabideen4455 4 месяца назад
1like = 5pushups in 2024
@stringssetc
@stringssetc 4 месяца назад
How do we know that you did the pushups?😂
@syedzainulabideen4455
@syedzainulabideen4455 4 месяца назад
I will tell at the end of this January. You can come and check it on 31jan 2024
@21abhinavpatel
@21abhinavpatel 4 месяца назад
How about 100 pushups and 100 pullups for each comment?
@AnksioXD
@AnksioXD 4 месяца назад
how about 1000 pushups and 1000 pullups for each like and comment?
@dependentu40
@dependentu40 4 месяца назад
!remindme 28 days
@mahkhi7154
@mahkhi7154 4 дня назад
Programming Languages Such as Java, C#, C/C++ and Visual Basic/Pascal are Different but Also Similar. They All Have: Branching (If Statements to Run some Code and Not Some Other Code) Looping: For and While Loops - To Repetitivly Run the Same Code. Variables and Arrays - To Hold Data for Processing. Functions and Procedures: Blocks of Code to Run Multiple Times. How to Learn Programming: You Have to Learn the Language. Such as Java, or C#. Learn the Syntax: How you Declare and Use Variables or Arrays. What is the Syntax for Branching If Statements. Then YOU Need to use Your Brain. You Need to Think. HOW Can I Use Variables, Branching, Loops and Functions to Write Tic / Tac /Toe. Then Use your Brain to Write Pong. Then Use Your Brain to Write Tetris. Programming is NOT Merely: Finding the Solution (Copying from someone else) Tic / Tac /Toe , Pong and Tetris. YOU'RE P1G BRAIN IS UNABLE TO DO THAT. ALL YOU CAN DO IS, FIND THE SOLUTION FOR TIC/TAC/TOE FROM SOMEONE ELSE. MEMORISE AND REPEAT THAT. THEN YOU GET THE SOLUTION FOR PONG FROM SOMEONE ELSE. MEMORISE AND REPEAT THAT. THEN YOU GET THE SOLUTION FOR TETRIS FROM SOMEONE ELSE. MEMORISE AND REPEAT THAT. Then YOU Need to use Your Brain. You Need to Think. HOW Can I Use Variables, Branching, Loops and Functions to Write Tic / Tac /Toe. Then Use your Brain to Write Pong. Then Use Your Brain to Write Tetris. Programming is NOT Merely: Finding the Solution (Copying from someone else) Tic / Tac /Toe, Pong AND Tetris. YOU'RE P1G BRAIN IS UNABLE TO DO THAT. ALL YOU CAN DO IS, FIND THE SOLUTION FOR TIC/TAC/TOE FROM SOMEONE ELSE. MEMORISE AND REPEAT THAT. There Isn't One Solution or Answer for a Programming Exercise Such as Tic / Tac /Toe or Pong. They Can be Written in Several / Multiple. SEVERAL / MULTIPLE CORRECT / RIGHT ANSWERS.
@MiauMichigan
@MiauMichigan 21 час назад
😂 follow your own advice before posting.
@mahkhi7154
@mahkhi7154 21 час назад
@@MiauMichigan I'm Not gonna Waste My time Here. Go Have a Look at Thailand. They're facing a Holocaust for Wasting My Life.
@NewVirusofChina
@NewVirusofChina Месяц назад
Trace the program how we getting output
@user-kz9zb8cs2c
@user-kz9zb8cs2c 2 месяца назад
37:43
Далее
CS50x 2024 - Lecture 3 - Algorithms
2:02:12
Просмотров 150 тыс.
CS50x 2024 - Lecture 4 - Memory
2:17:23
Просмотров 121 тыс.
КТО ЭТО😱
00:41
Просмотров 399 тыс.
God-Tier Developer Roadmap
16:42
Просмотров 6 млн
Lecture 1: Introduction to CS and Programming Using Python
1:03:30
Bill Dally | Directions in Deep Learning Hardware
1:26:45
Comparing C to machine language
10:02
Просмотров 5 млн
4. Assembly Language & Computer Architecture
1:17:35
Просмотров 689 тыс.
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13