CS50x 2025 - Lecture 1 - C

preview_player
Показать описание
***

C. Source Code. Machine Code. Compiler. Correctness, Design, Style. Visual Studio Code. Syntax Highlighting. Escape Sequences. Header Files. Libraries. Manual Pages. Types. Conditionals. Variables. Loops. Linux. Graphical User Interface (GUI). Command-Line Interface (CLI). Constants. Comments. Pseudocode. Operators. Integer Overflow. Floating-Point Imprecision.

***

TABLE OF CONTENTS

00:00:00 - Introduction
00:01:15 - Source Code
00:04:59 - Visual Studio Code for CS50
00:08:34 - Hello, World
00:18:39 - From Scratch to C
00:25:42 - Header Files
00:29:10 - CS50 Manual Pages
00:32:18 - Hello, You
00:42:31 - Terminal Commands
00:51:06 - Types
00:52:24 - Conditionals
01:00:05 - Variables
01:02:50 - compare.c
01:16:34 - agree.c
01:23:26 - Loops
01:24:41 - cat.c
01:41:55 - Functions
01:56:36 - Correctness, Design, Style
01:58:33 - Mario
02:12:11 - calculator.c
02:20:04 - Integer Overflow
02:22:53 - Boeing
02:24:42 - Pacman
02:25:25 - Truncation
02:27:17 - Type Casting
02:30:10 - Floating-Point Imprecision

***

This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.

***

HOW TO SUBSCRIBE

HOW TO TAKE CS50

HOW TO JOIN CS50 COMMUNITIES

HOW TO FOLLOW DAVID J. MALAN

***

CS50 SHOP

***

LICENSE

CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

David J. Malan
Рекомендации по теме
Комментарии
Автор

This man is going to Sir Attenborough legend level in my personal geniuses pantheon. Thanks David.

muchoguillo
Автор

Truly amazing teaching. I took intro to programming through data structures in undergrad. Took us three entire courses to get to where David Malan takes us in a few lectures.

CalistaUX
Автор

59:00 Day 1
1:40:41 Day 1 (second session)
2:11:01 Day 2

himaljung
Автор

all professors should use cs50's style of teaching and lecture formats to learn how to teach, one of my favourite parts is the end of each lecture when he starts connecting the material of that lecture to real world problems.

ryed
Автор

The intros keep getting better year by year❤

-.-_._--
Автор

Here, in 1:48:12, he invokes the meow function (3), passing a value to the meow function (int n), declaring in that function to begin at 0 and proceed straight to 0. Therefore, if you can call the meow function (number of times), it will print 3 meow each time. He passed 3 to n (variable), but it was not used in a for loop. because he directly mentioned the ending point i < 3 but it should be like this i < n so the number we type in meow(any number) will be taken as the ending if you pass meow(5) it send 5 to n variable and i < 5 so 5 times will be printed

jonam_youtube
Автор

We need this type of teachers nowadays. Asking students if they have questions instead of getting mad at student who is asking questions about the lesson tackled.

arnelmaghirang
Автор

I starting CS50P and now this, soon hoping to come in edx to do all the problem sets. Sir David J. Malan is a Master in teaching and understanding. He can even teach a Cat to Code. Thanks to CS50 and Harvard to make this free of cost.

nayeembinreza
Автор

I am at Functions now and i just remember that i used to learn this in school, it was higher gruadation in germany and it was specializing in computering.
We had a programming class and we learned c++ but i remember that we had like 3 months of learning before we did what you just did in 3 hours... I got so frustrated with programming as so far as never wanted to pick it up agaik. I enjoy this course a lot.
I will try to first watch all the courses and maybe at some point also get the certificate but i am not sure if i can make it because i am a single mum of 3... I hope someday i can get a nice job and work in Data science or Ai...

tiffanytho
Автор

I hope you get them to use -fsanitize=address -fsanitize=undefined, I would recommend any beginner to C to use these to keep their sanity and learn all about the fun stuff like out of bounds access and undefined behaviour.

shaurz
Автор

Watching from Cameroon. Can't wait for it to be on edx ❤

ojongrandy
Автор

Great video 👏🏻👏🏻...taking the lectures. Keep it up guys.

mjlmfhj
Автор

I am 62 & Trying to learn it perfectly.😍For me it is very difficult to remember but trying hard honestly.🤯

Автор

Interesting point is that “statically typed” doesn’t refer to physically punching keys on your keyboard, but to the general types of languages that either require a static variable declaration (C, Java), and those that interpret it at runtime (Python, JavaScript). Basically, you lock the data types in sooner to save yourself memory overhead later.

Hexspa
Автор

great lecture !!! better than my college ...

madmaxgaming
Автор

Do/while loop : 1:48:26
Double for loop: 2:06:47

Sermon-Replay
Автор

I want an invitation to America, Mr. David.

ZeinKarar
Автор

AC should be installed in the class room, or he is on fire 🔥

sassoleo
Автор

sht went from 0 to 100 real quick ngl i might be to 🐶💔 for ts💀

Soap
welcome to shbcf.ru