CS50 2017 - Lecture 1 - C

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

Комментарии • 108

  • @andibensisva2155
    @andibensisva2155 7 лет назад +102

    Thank you for making it free to watch. Its a valuable contribution to humanity. We learn a lot. We've been tired starving and ignorance.

  • @balkon646
    @balkon646 7 лет назад +57

    The fact that teacher is sweating is awesome. Love you guys, keep it up

    • @agapapo1898
      @agapapo1898 6 лет назад +2

      awesome? ' felt bad for the teacher, sweating is not pleasent as far as i now, lol

    • @alexstripling1120
      @alexstripling1120 4 года назад

      Speaking as a dude who grew up with a pair of parents who were heavily involved in theatre, yeah, those lights get really hot. In fact, when you're the one on stage, the way they teach you to know for certain that you are centered in a true spotlight, which is not present in this, is when you feel the subtle warmth on your skin. Tales abound from my wife, who was at one time also heavily involved in theatre, of dreaded "actor sweat" and the many searches for laundry detergent that actually got that smell out of costumes.

  • @licknelon3076
    @licknelon3076 6 лет назад +9

    These videos are awesome! I'm so glad you put this online for free! Much appreciation from the computer science community.

  • @ppauljefferson
    @ppauljefferson 6 лет назад +7

    i dont know what to say? such a useful video for me. Here in India we are not taught in this way/ first time getting accessed to things like this. Thanks a lot. Make some air conditioning for him, he is sweating a lot. That could disturb him from giving the presentation better

  • @amdrdn1
    @amdrdn1 7 лет назад +51

    IS CS51 too available freely? I could not find it anywhere on RUclips. Well, thanks for providing CS50, its an invaluable contribution to the society.

    • @amdrdn1
      @amdrdn1 7 лет назад +2

      Thanks lot!

    • @kevinzhang3313
      @kevinzhang3313 5 лет назад

      They have many courses listed under "cs50"

  • @psylocke1517
    @psylocke1517 7 лет назад +8

    Thanks for everything, really.

  • @gouripanda7517
    @gouripanda7517 6 лет назад +1

    David,cs 50 2017 all intro videos are awesome.

  • @ziomanzo
    @ziomanzo 6 лет назад +5

    great teacher

  • @Meboy1122
    @Meboy1122 3 года назад

    I llooooove cs inloooove it!!!

  • @susannahazzaro6914
    @susannahazzaro6914 6 лет назад +4

    Excellent lecture! Super dynamic presenter! Loved it!

  • @bergetian
    @bergetian 7 лет назад +7

    ☺☺Hello from spain.Thank you for a great class.

  • @aybenahos4497
    @aybenahos4497 6 лет назад

    Thank you prof.! From Philippines, this is just awesome 👍👍

  • @thamintsuntsha8936
    @thamintsuntsha8936 6 лет назад

    The course is very interesting and I am look forward to be part of...

  • @bluebird563
    @bluebird563 6 лет назад +1

    I learned some new things today, thanks

  • @kedarpednekar9582
    @kedarpednekar9582 6 лет назад +1

    He is the one of the best teacher 🙌

  • @engemeera
    @engemeera 6 лет назад +1

    I can not understand exactly what he meant in the last ten minutes .

  • @frankie_goestohollywood
    @frankie_goestohollywood 6 лет назад

    Fantastic teacher-thank you !!!!!!!!!!!!

  • @danielgorringe2311
    @danielgorringe2311 3 года назад

    Anyone understand why the get_int function can be called without making reference to the cs50 name ( the library name)? what if two libraries had identical function names for example?

  • @GeorgeKarayannis
    @GeorgeKarayannis 7 лет назад +3

    this is great stuff!

  • @georgymartynovich4522
    @georgymartynovich4522 6 лет назад +4

    let me go ahead and like

  • @mellameezie
    @mellameezie 3 года назад

    👌🙌

  • @MsAnnaBs
    @MsAnnaBs 6 лет назад +4

    Can anyone explain please?
    Here @ 44: 31, near the % sign, we use the declared variable "i":
    int i = get_int ("Integer:");
    printf ("hello,% i \ n", i);
    Here @ 47: 05, near the % sign, we also use a variable, but it is not declared:
    int x = get_int("x: ");
    int y = get_int("y: ");
    printf("%i plus %i is %i
    ", x, y, x+y );
    1. Can we use near the % sign only declared variables?
    2. If so, why we are using in the second example something, that is not declared previously ?

    • @mustaphaisah5429
      @mustaphaisah5429 6 лет назад +2

      %i, %s,%c and %d %f are all used by default in c. It just tells the compiler what type of value will follow. The value that must be declared before being used are the ones after the comma
      printf("%i plus %i is %i
      ", x ,y ,x+y);
      So here above. x and y must be declared before being used. but %i just means the values are integers.
      If he used %s, it means the values x, y , x + y are strings.
      If you can remember he said
      printf("%i plus %i is %i") The first %i stands for x and the second stands for y and the last stands for whatever the result of x+y is.
      I hope this helps, despite being verbose and not succint :)

    • @MsAnnaBs
      @MsAnnaBs 6 лет назад

      Thanks for the explanation.
      initially confuses the fact that the first example uses a letter "i" as a variable.
      Thus it seems that the same letter "i" should be used next to the % sign and after the decimal point.
      i.e. if you defined a variable at the beginning
      int i = get_int ("Type an Integer:");
      you shoul use it then everywhere
      printf ("hello,% i \ n", i);
      But it would be much easier if he used another letter.
      Something like that:
      int x = get_int ("Type an Integer:");
      printf ("hello,% i \ n", x);
      1. User types an integer (e.g 5 )
      2. x stores data (5)
      3. x passes data do %i
      4. output shows the the following "hello 5"
      so yes. Now it's clear :))) Thanks

    • @Arseniy91
      @Arseniy91 6 лет назад

      %i reprensents a space, where you can print ingteger, it is not a variable. After that you pass a variable which will be printed in that space - i at the first example, and x and y at the second.

  • @cerberusrap
    @cerberusrap 7 лет назад +13

    Hahahaha, that man seems "unstoppable". But our teachers are don't want to tell us anything about anything. (in Turkey academies and universities)

    • @swank0808
      @swank0808 5 лет назад

      hangi üniversite?

    • @noureddine3633
      @noureddine3633 4 года назад

      seems you are a lazy student

    • @cerberusrap
      @cerberusrap 4 года назад

      @@noureddine3633 No dude. I'm just an alcoholic

    • @noureddine3633
      @noureddine3633 4 года назад

      @@cerberusrap that's forbidden, and still your fault not your teachers

    • @cerberusrap
      @cerberusrap 4 года назад

      @@noureddine3633 I'm an engineer now

  • @vaibhavpatil2611
    @vaibhavpatil2611 6 лет назад

    44:50
    I don't get what exactly %i
    does?
    And why it's , i following that ?

  • @sumitsoni8596
    @sumitsoni8596 6 лет назад +1

    Is it c or c++?

  • @akshaysingh145
    @akshaysingh145 4 года назад

    This works on CS50.ide only, right ?

  • @sukumarsanu3260
    @sukumarsanu3260 6 лет назад

    can i add up cs50 lib for general use.. or is there any other library i can use up instead of cs50 library

  • @dragg0_0
    @dragg0_0 6 лет назад

    he is just enjoying it

  • @syedmuhammadhammadghani1035
    @syedmuhammadhammadghani1035 6 лет назад +11

    Oh my God, these lectures are pure gem. Anyone knows about some decent lectures on basic electrical engineering or transistors, transformers?

    • @gabemvp
      @gabemvp 6 лет назад

      Check out the edX plaftform edx.org. I'm pretty sure there are related courses.

    • @ridwanrf6074
      @ridwanrf6074 5 лет назад

      Late, but I would recommend this course: ruclips.net/p/PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo
      The title may be computer science but it also explains how transistors that can only be turned on and off transformed into components like CPU, ram, etc and the design behind those components.

  • @salmanshafique2868
    @salmanshafique2868 6 лет назад +1

    I have a question for CS50 team. if int reserves a piece of memory to store some number then why that piece of memory ignore the number after decimal point? Is it because decimal point takes more memory ? It also can not be true because float and int reserves same amount of memory.

    • @AdroitConceptions
      @AdroitConceptions 6 лет назад

      int and float treat the bits stored in that memory differently.
      an int just stores an integer number.
      However a float, stores a floating point number IE scientific notation. The bits are split into a number part 1.xxxxxxx and a exponent 10^x. They are also processed in different parts of the CPU.

  • @craiggreenwaldschool673
    @craiggreenwaldschool673 7 лет назад

    @ 11:20 wouldn’t the program execute 51 times? counting 0-50....with zero being the first int
    maybe?

    • @SethurBlackcoat
      @SethurBlackcoat 7 лет назад +2

      As is pointed out (perhaps not very clearly), the criteria for executing that line of code is "is i LESS than 50". So when i is 49, it is the 50th time going through the loop, the line will be executed, and then i increased to 50, at which point it will check "is 50 LESS than 50", which is not the case - 50 is equal to 50, not less. Thus the line will not be run a 51st time and execution of the program continues below the loop.
      If you started i off at 1, as is more natural to most people, the criteria would have to be "i is LESS OR EQUAL to 50", or "i

  • @getptv8356
    @getptv8356 6 лет назад

    its so good thanks sir

  • @leonardodantas7330
    @leonardodantas7330 6 лет назад +3

    Charlie Sheen teaching me to code. Awesome

  • @willtrevis9472
    @willtrevis9472 6 лет назад

    97,109,97,122,105,110,103 (ASCII)

  • @ahmedt.abouelezz6384
    @ahmedt.abouelezz6384 6 лет назад

    Why did you put a semicolon when you copied the "return code" to the header ?

    • @zainahmed6502
      @zainahmed6502 6 лет назад

      can you specify the exact time he did that?

  • @043mehdi
    @043mehdi 6 лет назад +20

    Dear Professor Malan, We are requesting for also CS51. Please do us this favor. Want to learn more advanced level. Thank you very much.

    • @TheOne-fu1nh
      @TheOne-fu1nh 6 лет назад +7

      Jesus Christ with you greedy people.
      Just appreciate this free course which costs around $150,000 to get it in Harvard.
      Malan truly covers EVERYTHING until the last course.
      Just use these things you learnt here, push yourself a bit ... and you will go to the advanced level by yourself dude :)

    • @043mehdi
      @043mehdi 6 лет назад +12

      The One Chill out dude! Greed for education is no shame at all. Do not insult yourself.

    • @TheOne-fu1nh
      @TheOne-fu1nh 6 лет назад +5

      Kazi Mehdi The education shown here is MORE THAN ENOUGH. If indeed you watched like a student -- as I did, you WOULD NEVER ask for more.
      You have 11 GREAT lectures, streching from C , to Algorithms and goes all the way up until JavaScript.
      I HAVE ZERO, 0, knowledge on Computer Science and now I can program by myself.
      The only thing that can teach me anything now are Books, Stack Overflow and PRACTICE :)
      You TRULY shouldn't ask for more than these 11 lectures, because it only proves you didn't learn anything here Kazi :)

    • @043mehdi
      @043mehdi 6 лет назад +4

      No one asked you to reply to my comment. If you don't like, avoid. Don't compare. Stop interfering. Don't judge. It's a serious bad habit.

    • @TheOne-fu1nh
      @TheOne-fu1nh 6 лет назад +5

      Only shows that you didn't complete ANY of Professor Malan's homework and that you just passed these videos, just waiting for more.
      Turn off the butt-hurt and go polish your coding.

  • @FaTaLiTy741
    @FaTaLiTy741 6 лет назад

    Does anyone know where to find the sample code he uses in the lectures?

    • @shawkyelshazly4468
      @shawkyelshazly4468 6 лет назад

      on edx : courses.edx.org/courses/course-v1:HarvardX+CS50+X/courseware/bdc606f10e7347f6a61a341c4544bbf7/71a3739357a54a0e81348468341214b3/?child=first

  • @asdfghasdfgh9253
    @asdfghasdfgh9253 6 лет назад

    i am not seeing any ide in this video where can i test your codes

  • @well.8395
    @well.8395 7 лет назад +22

    Can Indian college professors/lecturers learn from him?

    • @aglattikader34
      @aglattikader34 6 лет назад +3

      Turkey, too.

    • @intuit13
      @intuit13 6 лет назад +6

      most profs/lecturers can learn from him. Same with the Australian CS professor Richard Buckland. Seriously, look up some of his lectures on youtube. Fantastic energy and charisma. What a terrific CS prof.
      ruclips.net/user/BucklandRichard

    • @intuit13
      @intuit13 6 лет назад +3

      Also, THIS GUY is just great. His lectures are great and double as a stand up comedy routine, basically. I love him, but this is an older course and I don't know if he has any more/newer ones up. Prof Mehran Sahami from Stanford. He's hilarious!
      ruclips.net/video/KkMDCCdjyW8/видео.html

    • @saipanda893
      @saipanda893 6 лет назад +1

      No not all bro. Although they charge very high compare to them.

    • @TheOne-fu1nh
      @TheOne-fu1nh 6 лет назад +2

      i just hope Indian lecturers work on their fucking ACCENT!

  • @azfarbilal8799
    @azfarbilal8799 6 лет назад

    I've got a mac but CS50 IDE won't open. What do I do?

    • @kareemzidane1538
      @kareemzidane1538 6 лет назад

      Try emailing sysadmins@cs50.harvard.edu with the symptom you're seeing!

    • @azfarbilal8799
      @azfarbilal8799 6 лет назад

      @@kareemzidane1538 Done! Thank you!

    • @azfarbilal8799
      @azfarbilal8799 6 лет назад

      "Your message wasn't delivered to sysadmins@cs50.harvard.ed because the domain cs50.harvard.ed couldn't be found. Check for typos or unnecessary spaces and try again." is what I got

    • @azfarbilal8799
      @azfarbilal8799 6 лет назад

      @@kareemzidane1538 "Your message wasn't delivered to sysadmins@cs50.harvard.ed because the domain cs50.harvard.ed couldn't be found. Check for typos or unnecessary spaces and try again." is what I got on gmail

    • @kareemzidane1538
      @kareemzidane1538 6 лет назад +1

      @@azfarbilal8799 it's .edu not .ed.

  • @wayneisthebestable
    @wayneisthebestable 6 лет назад

    where can i find the homework of cs50?

  • @sipinoza5120
    @sipinoza5120 5 лет назад

    Türkiye burda mı

  • @keshavmaheshwari3946
    @keshavmaheshwari3946 5 лет назад

    this hall does not have ac for teacher

  • @ValorGames7
    @ValorGames7 6 лет назад

    I hope my professor would be like him... haha

  • @yousefissa3229
    @yousefissa3229 6 лет назад

    can you gave me PDF course

    • @shawkyelshazly4468
      @shawkyelshazly4468 6 лет назад

      You can find the course transcript on the course's page on edx : courses.edx.org/courses/course-v1:HarvardX+CS50+X/courseware/bdc606f10e7347f6a61a341c4544bbf7/71a3739357a54a0e81348468341214b3/?child=first

  • @masken8355
    @masken8355 6 лет назад

    Me: Holy shit C already *downloads GCC*

  • @christopherforrest2640
    @christopherforrest2640 6 лет назад +6

    Get this man some air conditioning.

  • @walkersmith2791
    @walkersmith2791 6 лет назад +2

    Intel inside? He sure doesnt know what kind of CPUs are the best ones.

  • @RjInvests
    @RjInvests 6 лет назад

    I am copying exactly what he is doing and I am getting undefined reference to main

  • @prabeshnepal5989
    @prabeshnepal5989 6 лет назад

    Wow

  • @mnsoyan
    @mnsoyan 6 лет назад +1

    19:10 cs50.io

  • @JohnSmith-uy7sv
    @JohnSmith-uy7sv 6 лет назад

    Wait ...What??? at 16:24 when "YOU" did scratch. Like what? I never did scratch. I watched a little of it on here.. but they never gave me a link to download the software to experiment and do a project doing scratch. How am I supposed to learn and understand if I do not get to practice? Sure glad I did not pay for the degree. This is nothing like that was lead on to believe. You get an "F".

    • @LuisHenriqueUchiha
      @LuisHenriqueUchiha 6 лет назад +5

      On the first lecture, he showed us Scratch AND told us the online version is on: scratch.mit.edu/

    • @nikolaibreckenridge2287
      @nikolaibreckenridge2287 6 лет назад +6

      If you do this course through edx, all the links and info are there. It's free.

    • @jnoirj3124
      @jnoirj3124 6 лет назад +6

      +John Smith You can also not be an invalid and look it up yourself. What's the point of having the internet and countless search engines at your fingertips if you refuse to use them.

    • @derekclark5545
      @derekclark5545 6 лет назад +1

      I'm on J Smith's side on this. These videos are a cover up for his involvement with a hacking/gangstalking organization that recently was discovered through an investigation that started in Columbia, MO. A group of physicians called the Changers that are involved w murder to rape were caught. Search "the Changers, audio, evidence," on RUclips. He's posting video and pics that portray him as a good person/teacher which would be why someone "set him up" and made it look like he was involved. Truth is these docs were using VR environments to target and watch people in Columbia. They set up military grade wireless network across the city so they could place hidden cameras anywhere they wanted. My wife worked with these docs and confirmed they were doing this. We located cameras in our home, tracking software on her phone and computer after installing app and program a Tom Aleto MD recommended. The network of gangstalkers utilize very sophisticated technology to target a person but not undetectable. Unfortunately they also pay off police and sheriff dept. in order to get away with their crimes. Truth is they are sex addicts, drug addicts and criminal voyeurs in Columbia Mo and went as far killing a reporter Keith Heitholt Sports Editor of the Columbia Tribune after he uncovered their activity and convinced the police detectives that Ryan Ferguson was responsible along w another kid who was brain washed at MUPC a psych hospital at the University of Missouri Hospital to say they did it. Ryan was found guilty w/o any evidence other than a psych evaluation of a psychotic patient who said he had a dream about it. Ask anything you want. Then go to "rate my professor" web site and look up Malan and his comments from students. Do you really think Harvard students are making these comments? it's a cover up

    • @fergustowler2173
      @fergustowler2173 6 лет назад

      @@derekclark5545 source?

  • @MMABeijing
    @MMABeijing 6 лет назад

    I don't get why people say "mac or PC". A mac is just a personal computer, your windows machine is a personal computer as well, and my linux/ubuntu is a superior personal computer...