CS50 Fall 2023 - Lecture 1 - C (live, unedited)

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

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:12:59 - Machine Code
00:17:56 - Visual Studio Code for CS50
00:21:12 - Hello, World
00:30:38 - From Scratch to C
00:32:32 - CS50 Library
00:43:12 - Format Codes
00:48:21 - Hello, You
00:52:51 - Types
00:54:13 - Conditionals
01:00:37 - Variables
01:03:28 - compare.c
01:15:38 - agree.c
01:23:04 - Loops
01:29:10 - meow.c
01:39:04 - Functions
01:46:42 - Break
02:00:15 - calculator.c
02:05:48 - Scope
02:09:36 - Function Composition
02:12:04 - Linux
02:20:35 - Mario
02:35:32 - Integer Overflow
02:40:59 - Truncation
02:44:27 - Type Casting
02:45:51 - Floating-Point Imprecision
02:48:37 - Y2K
02:51:16 - Video Games
02:53:05 - Boeing

***

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
Рекомендации по теме
Комментарии
Автор

Thank you, Prof. Malan, for bridging distances, breaking barriers, and making elite education accessible to all.

Agranat
Автор

You can clearly see when a professor loves what he does, and professor Malan does it effortlessly

franky_teck
Автор

A big thank you to David Malan for providing your teachings here on YouTube for free. This is helping me and lots of other students. You are a very nice person. Thank you ❤ 🙏

maxprinceps
Автор

Assertion to the contrary, the do-while program at 2:33:17 is not valid. Even _if_ 'n' was available at the conditional (which it is not), it would not be valid in the rest of the program because it was declared in a separate inner scope. In this example, the declaration of 'n' and the assignment to 'n' must be separated, with the declaration moving before the do-while.

This could be turned into a teachable moment by showing what happens if you add the declaration of 'n' before the do, while leaving it inside too. Shadowing can cause insidious issues.

cacheman
Автор

Imagine this guy is your professor!
What an amazing man.
Thanks for video.

mertkaraman
Автор

Such a great professor, he looks so excited to teach programming.

tatsinis
Автор

you know, watching this early introduction to computer science, makes you feel how much you've grown

checkoverstripes
Автор

"Time reveals the past, but knowledge shapes the future." *Knowledge is everywhere just go and grab it.*

krijankhatri
Автор

Thank you for your time and instruction.

ahmedshaikh
Автор

The program at 2:33:00 doesn't work for me. I needed to change:

int n;
do
{
n = get_int("Size: ");
}
while (n < 1);


With the way explained in the video the "while" doesn't recognise the "int n" as it's inside the bracket ("SCOPE ISSUE")

leocrypto
Автор

literally CS50 is the best...no room for dispute!

Rennie_genius
Автор

Thanks for providing an awesome lecture

devilcodeblaster
Автор

Clearly explanation... Thanks a lot Prof. Malan

arifekaprasetya
Автор

🤔🤔can you please tell me whats new in CS50 Fall 2023 vs. CS50x 2023 which was also uploaded on youtube

muhammadammar
Автор

13:01 Today, we learn C and focus on problem-solving.

15:09 Learning about source code and machine code

19:12 The user interface consists of different regions.

21:01 Learn how to write, compile, and run code using three commands: apply code, make, and ./hello.

24:51 Print a formatted message in C using printf function.

26:48 Using backslash N (
) can ensure a new line at the end of the output

31:13 Printing in C requires including the stdio.h library

33:19 A library is code that someone else wrote and a header file (.h) gives you access to it.

37:10 Getting user input in C can be challenging

39:13 A return value is like a slip of paper with the answer to a function.

43:12 Using print F in C to format text

45:30 Understanding the syntax of string formatting in C

50:00 The VS code colors are automatically applied to text

52:01 Using the appropriate header file and including CS50_DOT_H teaches the compiler new functionality.

56:06 Code formatting rules should be standardized for consistency.

58:13 Using a single equal sign in C means assignment, while using double equal sign means equality.

1:02:17 Incrementing and decrementing variables in C

1:04:25 The program demonstrates the use of conditional statements

1:08:30 Using ELIF statements instead of nested IF statements can simplify code and save time.

1:10:31 Optimize code by reducing unnecessary questions

1:14:52 In C, there are three data types: strings, integers, and characters.

1:16:50 Checking user agreement can be done by comparing variables C with lower and uppercase characters.

1:21:11 Using vertical bars in C can be used to represent the English word 'or'

1:23:16 C programming involves understanding functions, conditionals, loops, and implementing ideas like repetition.

1:27:22 Using descriptive variable names is conventionally preferred in programming.

1:29:24 Using a loop to avoid code duplication

1:33:26 The four loop syntax is a more succinct way of achieving the same idea

1:35:38 Using curly braces in code is common, but not always necessary

1:39:56 Functions in C can be used to abstract away certain tasks

1:41:56 The order of defining functions in C is important

1:46:10 There's a lot of new syntax and translation of scratch to c.

2:01:48 Creating a simple calculator to add two numbers in C

2:06:05 Variable scope and function arguments in programming.

2:08:21 The function takes two inputs and returns the sum of them.

2:12:22 Linux is a popular operating system with a textual interface.

2:14:32 Learn to use keyboard commands to increase productivity

2:18:29 Deleting files using the RM command in Terminal.

2:20:34 Creating a program to print four question marks in a row.

2:24:45 Printing a grid using loops

2:26:47 The code shows how to print a grid using hash symbols in different sizes.

2:30:54 Using a loop to ensure the user enters a positive integer

2:32:52 Introduction to do-while loop and comments in C programming

2:37:10 Integer overflow is a limitation in computers due to insufficient memory

2:39:09 Data types in C allow control over the number of bits used.

2:43:22 Truncation in division causes incorrect results

2:45:30 The computer's rounding error and limitations in representing numbers lead to unexpected results

2:49:55 The 2038 problem is a potential issue with computers counting time that could cause problems in the year 2038.

2:51:52 Software bugs can cause unexpected problems in various systems.

Crafted by Merlin AI.

ArjunCodess
Автор

Could you program the answer to include a confirmation a correct entry was made as a fourth option? for example 3rd output is "x is equal to y\n"; then 4th output is ("or the entry is not an integer\n ");

rtzx
Автор

Just asking for the sake of planning,
Would there be complete course lectures regularly? Or else.
Please inform!

Enigmaniacc
Автор

Prof. Malan is amazing but everytime when he makes the "#" he references its "underground" Mario but its the castle theme and as a Nintendo fan it urks me to no end lol

raginijenkins
Автор

include <cs50.h> not working. "your.c:1:18: fatal error: cs50.h: No such file or directory
#include <cs50.h>" i'm getting this in the output.

El_Azam