true. he does love what he do. (I've noticed I can still understand something if it's not grammatically correct. what does this portend about the future of languages?--)
David malan is awesome teacher i guess cs50 should teach in grade 10 for all the kids so they can chose a path to COMPUTER SCIENCE field. They way DAVID MALAN tought this class is superb n whole cs50 staff is very helpful love it. Thank you @Davidmallan
1:00:37 A grammar question string s = get_string("Input: "); printf("Output: "); for (int i = 0, n = strlen(s); i < n; i++) { printf("%c ", s[i]); } in here s initialized as a string. how it can be used as string array -> s[i] without definition???
Really curious after the 1st week(lecture 2 technically), how many drop out after those Problem Sets of Mario and Cash/Credit? Those were good challenges. I'd been doing Python for a couple months and thought I could take C on the "more comfortable" level but I was wrong. I didn't even attempt Credit. I looked up someone else's solution online and realized I didn't have that capacity yet so I didn't submit one.
yeah,it really need some experience even in pset1,so i amazed what harvod student hava done.if u are a newbie in programing and saved the pset1,i think u r really talent
@@Michyme I'm assuming you mean like this if you input 3? # # # I think you need another "for" loop if I remember right but its been a couple months since I've done it. I cant see my code right now since I'm at work.
@@evaporatedmist Thanks, for the reply. But I think what I should say is how cs50.h takes string argv and turns into char * argv[] that compiler understands.
While I was building the scores 2 example on the sandbox, I kept getting an indexing error when outputting it. Turns out I was starting my "I" integer from 1 rather than 0. Changing it to 0 fixed it, however this is confusing to me. Do arrays always have to start at 0?
Standard convention is to start at 0 when counting (like in for-loops) or for indexing an array If int array[3] = {5, 8, 1}; Then array[0] is equal to 5. array[1] is equal to 8. array[2] is equal to 1. Be careful when trying to access array[3] as this is actually outside of the memory set aside for the array. This can be especially dangerous in C. Some languages allow for custom subscripts; meaning that instead of starting from 0, you could start from 1. However, this isn't the case for most languages. Many languages force you to start indexing from 0. Because of this, it is generally best to get into the practice of always starting from 0.
Thanks so much for the explanation! Out of curiosity, what were to happen if you try to access something outside of the array? You said it is especially dangerous in C? Why so?
Jordan Esquivel the reason that accessing an index outside of the array is dangerous (in C) is because it is undefined behavior. You might end up getting a segmentation fault. You might end up receiving some other memory location. It’s hard to predict what will happen, since it’s undefined. In most cases, it’s not really dangerous in the sense that you’d mess up your computer (since most operating systems prevent things like this). But it’s dangerous in the sense that the program might not flag an error. It might chug along like nothing is wrong, and you might believe that the code works like expected. Compare that with Java, for instance. If you try to access an index outside of the array’s memory, it will throw an exception letting you know “HEY YOU MESSED UP PLEASE FIX OR ELSE YOU CANT DO ANYTHING ELSE”. I’ll link an article that might help explain a bit more than I can in a RUclips comment. www.geeksforgeeks.org/accessing-array-bounds-ccpp/
some of this explained help50 and style50 would have been great in the last lecture before the problem sets. I saw "help50" I remember, but had no clue what it did really. Guess that's my fault but I'm not sure it would have picked up any bugs in my code since that wasn't the fault. Style was bad in some spots though on my code and just now went back to the page to see the Style Guide link. Consider adding a short explanation of this stuff to the Lecture before this for the Problem Sets 1 rather than afterwards.
Samet Cömert inşallah aslında 7. Lecture a kdr gelmiştim ama sonra kodların çok ağır geldiğini ve sadece izlediğimi farkettim şuan Python calisiyorum sentdexin oynatma listesindin hepimize başarılar :)
Thank you a million times Mr. David Malan for your teachings. You made me love computer science even more if that was possible.
Turn on subtitles at 46:08
I appreciate the subtle humor of whoever wrote the subtitles, kudos to you.
I have never really understood what are these algorithms.. Thank you very much Mr. Malan, all heroes don't wear capes!
Very cinematic camera work on these videos. Love it.
im thankful for this whole course being provided for free. thank you so much!
thanku for providing the course for free
Very welcome!
He’s a really good instructor. Most cs constructors are very mundane and uninteresting
He's enthusiastic and a little over the top.
He is good cause he loves what he do
Can vouch for that
Guess what? He is the very person who made me fell in love with computer science.
true. he does love what he do. (I've noticed I can still understand something if it's not grammatically correct. what does this portend about the future of languages?--)
Thanks a lot to Harvard University and David J. Malan for this courses . This teacher makes me love about computer science .
I am able to learn deeper about computer science and not just half-ass learning. Thank you, Mr. David.
Very welcome!
Well i am a arts graduate and still watching this course!
Yes i am able to understand it very easily
So glad to hear! Welcome aboard!
I love David J Malan😍
David malan is awesome teacher i guess cs50 should teach in grade 10 for all the kids so they can chose a path to COMPUTER SCIENCE field. They way DAVID MALAN tought this class is superb n whole cs50 staff is very helpful love it. Thank you @Davidmallan
1:00:37 A grammar question
string s = get_string("Input: ");
printf("Output:
");
for (int i = 0, n = strlen(s); i < n; i++)
{
printf("%c
", s[i]);
}
in here s initialized as a string. how it can be used as string array -> s[i] without definition???
David is an example and a inspiration!
That sorting video was so satisfying.
Sonification of the final algorithm comparisons, very cool.
You think we can access that web page? It's simple yet very helpful.
why does the c code not get compiled directly to binary? Why the intermediate assemly code?
Really curious after the 1st week(lecture 2 technically), how many drop out after those Problem Sets of Mario and Cash/Credit? Those were good challenges. I'd been doing Python for a couple months and thought I could take C on the "more comfortable" level but I was wrong. I didn't even attempt Credit. I looked up someone else's solution online and realized I didn't have that capacity yet so I didn't submit one.
yeah,it really need some experience even in pset1,so i amazed what harvod student hava done.if u are a newbie in programing and saved the pset1,i think u r really talent
please i need help with mario
@@Michyme Are you doing it on "less comfortable" in pieces as the website walks you through each example? If so, which part are you stuck on?
Yes I’m doing the less comfortable. But it keeps producing the # in a straight line instead of a pyramid based a number that I input.
@@Michyme I'm assuming you mean like this if you input 3?
#
#
#
I think you need another "for" loop if I remember right but its been a couple months since I've done it. I cant see my code right now since I'm at work.
Just one word "AMAZING"
This Guy Rocks!
How did they crop David out without a blue/green screen?
There's one off to the side!
After including the header files like cs50.h,math.h is it necessary to mention them in clang while compiling
Are you sure my outfit looks ok? 38:49
Joking aside. This man is amazing. It looks like he burns more calories than someone in a spin class.
JW P lol what!?
@@jkovert hahahaha
This was just AMAZING! Wonderful class.
Why couldnt i just define COUNT so it will not consume any memory and will be just evaluated in preprocessing state?
i think its a bit early to talk about define at this stage of the course
You are the best!
Anyone know where can I get one of the stress ball?
maybe you have to be a Harvard student and attend the class
Hello sir give me idea about online classes with Harvard teachers
The FAQ is down for CS50 EDX. Anyone know if we are allowed to resubmit problem sets?
You may! We've fixed that link, cs50.readthedocs.io/faq/cs50x/.
1:20:26 C99: Don't get too excited
Great!
Thank you very much really
Quick Q though, how does string argv work? I mean I looked up and it is different than what c is usually
Some arguments used here are based on CS50's customized library, namely cs50.h, and hence are different than standard C. Hope this helps!
@@evaporatedmist Thanks, for the reply. But I think what I should say is how cs50.h takes string argv and turns into char * argv[] that compiler understands.
@@joohojeong597 Ooh.. you can see the sc50.h file on CS50 IDE.. ide.cs50.io
subtitles are delayed
there is a delay in subtitle
you have to choose the "English (automatically generated)"
Why doesn't Harvard have AC in that room? The teacher is sweating his soul out
While I was building the scores 2 example on the sandbox, I kept getting an indexing error when outputting it. Turns out I was starting my "I" integer from 1 rather than 0. Changing it to 0 fixed it, however this is confusing to me. Do arrays always have to start at 0?
Standard convention is to start at 0 when counting (like in for-loops) or for indexing an array
If int array[3] = {5, 8, 1};
Then array[0] is equal to 5. array[1] is equal to 8. array[2] is equal to 1. Be careful when trying to access array[3] as this is actually outside of the memory set aside for the array. This can be especially dangerous in C.
Some languages allow for custom subscripts; meaning that instead of starting from 0, you could start from 1. However, this isn't the case for most languages. Many languages force you to start indexing from 0. Because of this, it is generally best to get into the practice of always starting from 0.
Thanks so much for the explanation! Out of curiosity, what were to happen if you try to access something outside of the array? You said it is especially dangerous in C? Why so?
Jordan Esquivel the reason that accessing an index outside of the array is dangerous (in C) is because it is undefined behavior. You might end up getting a segmentation fault. You might end up receiving some other memory location. It’s hard to predict what will happen, since it’s undefined.
In most cases, it’s not really dangerous in the sense that you’d mess up your computer (since most operating systems prevent things like this). But it’s dangerous in the sense that the program might not flag an error. It might chug along like nothing is wrong, and you might believe that the code works like expected.
Compare that with Java, for instance. If you try to access an index outside of the array’s memory, it will throw an exception letting you know “HEY YOU MESSED UP PLEASE FIX OR ELSE YOU CANT DO ANYTHING ELSE”. I’ll link an article that might help explain a bit more than I can in a RUclips comment.
www.geeksforgeeks.org/accessing-array-bounds-ccpp/
Yes. Yes they do. :))
some of this explained help50 and style50 would have been great in the last lecture before the problem sets. I saw "help50" I remember, but had no clue what it did really. Guess that's my fault but I'm not sure it would have picked up any bugs in my code since that wasn't the fault. Style was bad in some spots though on my code and just now went back to the page to see the Style Guide link. Consider adding a short explanation of this stuff to the Lecture before this for the Problem Sets 1 rather than afterwards.
imagine if this guy ever took any stimulant..
52:42
I'm Chinese student.My English is poor.The subtitle is delay.Could you help me?
Choosing automatically generated subtitles will be much better
Automatically generated subtitles have became better than human generated ones, soon machines will take over the world!
或者,你也可以观看bilibili上的转载版,会有中文字幕.NO DELAY
@@fritzhopper5145 谢谢~
@@gorgezhang3488 不客气
First to comment"Loved it"
I tried to find contact in my phone by break it to half as David did this with phonebook, but I failed((
you probably missed ;
Thank you Harvard university for courses
Very welcome!
I READ THIS CSGO
great course and instructor but the Camera moves a lot makes it hard to follow
no it makes the lecture interesting and you have to fully focus on the lecture
@@sametcomert2972 you are right....it keeps my attention towards the subject
@@sametcomert2972 Gozum yasli hemserisine rastlasan gurbetci gibiyim
@@mustafakarakas1116 çok güzel bir kurs, böyle güzel kurslarda daha çok türk görmek dileğiyle :)
Samet Cömert inşallah aslında 7. Lecture a kdr gelmiştim ama sonra kodların çok ağır geldiğini ve sadece izlediğimi farkettim şuan Python calisiyorum sentdexin oynatma listesindin hepimize başarılar :)
what a god
Just watch James while swapping
Wow
oi
is cs51 available for free ??
Sir plz upload videos on pointer
They already have uploaded
Who are the stupid people who disliked the video?
52
+++
I cant c# cause I am programing in java
awesome
"html programmers" dislike this video
I can teach better than him, much better.
oi