際際滷

際際滷Share a Scribd company logo
This is CS50
01111111 01000101 01001100 01000110 00000010 00000001 00000001 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000010 00000000 00111110 00000000 00000001 00000000 00000000 00000000
10110000 00000101 01000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
11010000 00010011 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 01000000 00000000 00111000 00000000
00001001 00000000 01000000 00000000 00100100 00000000 00100001 00000000
00000110 00000000 00000000 00000000 00000101 00000000 00000000 00000000
01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 01000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 01000000 00000000 00000000 00000000 00000000 00000000
11111000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
11111000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
00001000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000011 00000000 00000000 00000000 00000100 00000000 00000000 00000000
00111000 00000010 00000000 00000000 00000000 00000000 00000000 00000000
...
hello, world
input   output
representation
CS50 Lecture1
CS50 Lecture1
1001000 1001001 100001
72 73 33
1001000 1001001 100001
H I !
72 73 33
1001000 1001001 100001
72 73 33
CS50 Lecture1
CS50 Lecture1
CS50 Lecture1
input   output
algorithms
CS50 Lecture1
CS50 Lecture1
CS50 Lecture1
CS50 Lecture1
CS50 Lecture1
CS50 Lecture1
C
#include <stdio.h>
int main(void)
{
printf("hello, worldn");
}
#include <stdio.h>
int main(void)
{
printf("hello, worldn");
}
#include <stdio.h>
int main(void)
{
printf("hello, worldn");
}
#include <stdio.h>
int main(void)
{
printf("hello, worldn");
}
C
printf("hello, worldn");
printf("hello, worldn");
printf("hello, worldn");
printf("hello, worldn");
printf("hello, worldn");
printf("hello, worldn");
printf("hello, worldn");
int counter = 0;
int counter = 0;
int counter = 0;
int counter = 0;
counter = counter + 1;
counter = counter + 1;
counter = counter + 1;
counter += 1;
counter++;
if (x < y)
{
printf("x is less than yn");
}
if (x < y)
{
printf("x is less than yn");
}
if (x < y)
{
printf("x is less than yn");
}
else
{
printf("x is not less than yn");
}
if (x < y)
{
printf("x is less than yn");
}
else
{
printf("x is not less than yn");
}
if (x < y)
{
printf("x is less than yn");
}
else if (x > y)
{
printf("x is greater than yn");
}
else if (x == y)
{
printf("x is equal to yn");
}
if (x < y)
{
printf("x is less than yn");
}
else if (x > y)
{
printf("x is greater than yn");
}
else if (x == y)
{
printf("x is equal to yn");
}
if (x < y)
{
printf("x is less than yn");
}
else if (x > y)
{
printf("x is greater than yn");
}
else if (x == y)
{
printf("x is equal to yn");
}
if (x < y)
{
printf("x is less than yn");
}
else if (x > y)
{
printf("x is greater than yn");
}
else
{
printf("x is equal to yn");
}
if (x < y)
{
printf("x is less than yn");
}
else if (x > y)
{
printf("x is greater than yn");
}
else
{
printf("x is equal to yn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
while (true)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
for (int i = 0; i < 50; i++)
{
printf("hello, worldn");
}
string answer = get_string("What's your name?n");
printf("%s", answer);
string answer = get_string("What's your name?n");
printf("%s", answer);
string answer = get_string("What's your name?n");
printf("%s", answer);
string answer = get_string("What's your name?n");
printf("%s", answer);
string answer = get_string("What's your name?n");
printf("%sn", answer);
string answer = get_string("What's your name?n");
printf("%sn", answer);
string answer = get_string("What's your name?n");
printf("%sn", answer);
string answer = get_string("What's your name?n");
printf("hello, %s", answer);
string answer = get_string("What's your name?n");
printf("hello, %s", answer);
string answer = get_string("What's your name?n");
printf("hello, %sn", answer);
string answer = get_string("What's your name?n");
printf("hello, %sn", answer);
string answer = get_string("What's your name?n");
printf("hello, %sn", answer);
CS50 Sandbox
sandbox.cs50.io
CS50 Lecture1
#include <stdio.h>
int main(void)
{
printf("hello, worldn");
}
01111111 01000101 01001100 01000110 00000010 00000001 00000001 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000010 00000000 00111110 00000000 00000001 00000000 00000000 00000000
10110000 00000101 01000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
11010000 00010011 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 01000000 00000000 00111000 00000000
00001001 00000000 01000000 00000000 00100100 00000000 00100001 00000000
00000110 00000000 00000000 00000000 00000101 00000000 00000000 00000000
01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 01000000 00000000 00000000 00000000 00000000 00000000
01000000 00000000 01000000 00000000 00000000 00000000 00000000 00000000
11111000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
11111000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
00001000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000011 00000000 00000000 00000000 00000100 00000000 00000000 00000000
00111000 00000010 00000000 00000000 00000000 00000000 00000000 00000000
...
clang hello.c
./a.out
clang -o hello hello.c
./hello
make hello
./hello
get_char
get_double
get_float
get_int
get_long
get_string
...
bool
char
double
float
int
long
string
...
%c
%f
%i
%li
%s
CS50 Lecture1
floating-point imprecision
integer overflow
1 2 3
1 2 4
1 2 5
1 2 6
1 2 7
1 2 8
1 2 9
1 2 10
1 2 9
1 2 0
1
1 3 0
9 9 9
9 9 0
1
9 0 0
1
0 0 0
1
0 0 01
0 0 0
1 1 1
1 1 0
1
1 0 0
1
0 0 0
1
0 0 01
0 0 0
integer overflow
CS50 Lecture1
CS50 Lecture1
1999
1999
1900
CS50 Lecture1
CS50 Lecture1
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1
CS50 Lecture1
CS50 Lab
lab.cs50.io
This is CS50

More Related Content

Similar to CS50 Lecture1 (11)

Week1m
Week1mWeek1m
Week1m
tauqeer729
CS50 Lecture2
CS50 Lecture2CS50 Lecture2
CS50 Lecture2
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptxCS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
rawdnsr
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptxCS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
rawdnsr
Hash Functions, the MD5 Algorithm and the Future (SHA-3)
Hash Functions, the MD5 Algorithm and the Future (SHA-3)Hash Functions, the MD5 Algorithm and the Future (SHA-3)
Hash Functions, the MD5 Algorithm and the Future (SHA-3)
Dylan Field
05 2 蟯螻朱Μ觜語一
05 2 蟯螻朱Μ觜語一05 2 蟯螻朱Μ觜語一
05 2 蟯螻朱Μ觜語一
Changwon National University
Maze solving app listing
Maze solving app listingMaze solving app listing
Maze solving app listing
Chris Worledge
Replicating Parser Behavior using Neural Machine Translation
Replicating Parser Behavior using Neural Machine TranslationReplicating Parser Behavior using Neural Machine Translation
Replicating Parser Behavior using Neural Machine Translation
Sebastiano Panichella
Define ba1
Define ba1Define ba1
Define ba1
josnihmurni2907
Define ba
Define baDefine ba
Define ba
josnihmurni2907
06 1 譟郁唄覓
06 1 譟郁唄覓06 1 譟郁唄覓
06 1 譟郁唄覓
Changwon National University
CS50 Lecture2
CS50 Lecture2CS50 Lecture2
CS50 Lecture2
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptxCS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
rawdnsr
CS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptxCS50 2022 - Lecture 2 - Arrays.pptx
CS50 2022 - Lecture 2 - Arrays.pptx
rawdnsr
Hash Functions, the MD5 Algorithm and the Future (SHA-3)
Hash Functions, the MD5 Algorithm and the Future (SHA-3)Hash Functions, the MD5 Algorithm and the Future (SHA-3)
Hash Functions, the MD5 Algorithm and the Future (SHA-3)
Dylan Field
Maze solving app listing
Maze solving app listingMaze solving app listing
Maze solving app listing
Chris Worledge
Replicating Parser Behavior using Neural Machine Translation
Replicating Parser Behavior using Neural Machine TranslationReplicating Parser Behavior using Neural Machine Translation
Replicating Parser Behavior using Neural Machine Translation
Sebastiano Panichella

Recently uploaded (20)

AI has already changed software development.pdf
AI has already changed software development.pdfAI has already changed software development.pdf
AI has already changed software development.pdf
Radam辿s Roriz
Managing Changing Data with FME Part 1 - Compare & Detect
Managing Changing Data with FME Part 1 - Compare & DetectManaging Changing Data with FME Part 1 - Compare & Detect
Managing Changing Data with FME Part 1 - Compare & Detect
Safe Software
Lumion Pro Crack latest version Free 2025
Lumion Pro Crack latest version Free 2025Lumion Pro Crack latest version Free 2025
Lumion Pro Crack latest version Free 2025
naeem55ddf
Kaspersky Lab Products Remover 1.0.5497.0
Kaspersky Lab Products Remover 1.0.5497.0Kaspersky Lab Products Remover 1.0.5497.0
Kaspersky Lab Products Remover 1.0.5497.0
mohsinrazakpa93
TVersity Pro Media Server Free CRACK Download
TVersity Pro Media Server Free CRACK DownloadTVersity Pro Media Server Free CRACK Download
TVersity Pro Media Server Free CRACK Download
mohsinrazakpa43
Making significant software architecture decisions
Making significant software architecture decisionsMaking significant software architecture decisions
Making significant software architecture decisions
Bert Jan Schrijver
HeadSpin Alternatives with Better ROI: Top Tools Compared
HeadSpin Alternatives with Better ROI: Top Tools ComparedHeadSpin Alternatives with Better ROI: Top Tools Compared
HeadSpin Alternatives with Better ROI: Top Tools Compared
Shubham Joshi
Marketo User Group - Singapore - April 2025
Marketo User Group - Singapore - April 2025Marketo User Group - Singapore - April 2025
Marketo User Group - Singapore - April 2025
BradBedford3
From Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoT
From Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoTFrom Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoT
From Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoT
Eurotech
Java and AI with LangChain4j: Jakarta EE gets AI
Java and AI with LangChain4j: Jakarta EE gets AIJava and AI with LangChain4j: Jakarta EE gets AI
Java and AI with LangChain4j: Jakarta EE gets AI
Edward Burns
Software Architecture and Design in the Age of Code Assist tools.pdf
Software Architecture and Design in the Age of Code Assist tools.pdfSoftware Architecture and Design in the Age of Code Assist tools.pdf
Software Architecture and Design in the Age of Code Assist tools.pdf
Manu Pk
Autodesk MotionBuilder 2026 Free Download
Autodesk MotionBuilder 2026 Free DownloadAutodesk MotionBuilder 2026 Free Download
Autodesk MotionBuilder 2026 Free Download
blouch52kp
Image-Line FL Studio 20.8.3.2304 crack free
Image-Line FL Studio 20.8.3.2304 crack freeImage-Line FL Studio 20.8.3.2304 crack free
Image-Line FL Studio 20.8.3.2304 crack free
alihamzakpa084
NANO Antivirus Pro Crack + License Code Free 2025
NANO Antivirus Pro Crack + License Code Free 2025NANO Antivirus Pro Crack + License Code Free 2025
NANO Antivirus Pro Crack + License Code Free 2025
bhashmi963
The Open-Closed Principle - Part 1 - The Original Version
The Open-Closed Principle - Part 1 - The Original VersionThe Open-Closed Principle - Part 1 - The Original Version
The Open-Closed Principle - Part 1 - The Original Version
Philip Schwarz
DriverPack Solution Crack 17.10.14-24080
DriverPack Solution Crack 17.10.14-24080DriverPack Solution Crack 17.10.14-24080
DriverPack Solution Crack 17.10.14-24080
alihamzakpa035
IObit Driver Booster Pro 12.3.0.557 Free
IObit Driver Booster Pro 12.3.0.557 FreeIObit Driver Booster Pro 12.3.0.557 Free
IObit Driver Booster Pro 12.3.0.557 Free
mohsinrazakpa95
Async Excellence Unlocking Scalability with Kafka - Devoxx Greece
Async Excellence Unlocking Scalability with Kafka - Devoxx GreeceAsync Excellence Unlocking Scalability with Kafka - Devoxx Greece
Async Excellence Unlocking Scalability with Kafka - Devoxx Greece
Natan Silnitsky
Movavi Video Editor Crack + Activation Key [2025]
Movavi Video Editor Crack + Activation Key [2025]Movavi Video Editor Crack + Activation Key [2025]
Movavi Video Editor Crack + Activation Key [2025]
l07307095
New-4K Video Downloader Crack + License Key 2025
New-4K Video Downloader Crack + License Key 2025New-4K Video Downloader Crack + License Key 2025
New-4K Video Downloader Crack + License Key 2025
abbaskanju3
AI has already changed software development.pdf
AI has already changed software development.pdfAI has already changed software development.pdf
AI has already changed software development.pdf
Radam辿s Roriz
Managing Changing Data with FME Part 1 - Compare & Detect
Managing Changing Data with FME Part 1 - Compare & DetectManaging Changing Data with FME Part 1 - Compare & Detect
Managing Changing Data with FME Part 1 - Compare & Detect
Safe Software
Lumion Pro Crack latest version Free 2025
Lumion Pro Crack latest version Free 2025Lumion Pro Crack latest version Free 2025
Lumion Pro Crack latest version Free 2025
naeem55ddf
Kaspersky Lab Products Remover 1.0.5497.0
Kaspersky Lab Products Remover 1.0.5497.0Kaspersky Lab Products Remover 1.0.5497.0
Kaspersky Lab Products Remover 1.0.5497.0
mohsinrazakpa93
TVersity Pro Media Server Free CRACK Download
TVersity Pro Media Server Free CRACK DownloadTVersity Pro Media Server Free CRACK Download
TVersity Pro Media Server Free CRACK Download
mohsinrazakpa43
Making significant software architecture decisions
Making significant software architecture decisionsMaking significant software architecture decisions
Making significant software architecture decisions
Bert Jan Schrijver
HeadSpin Alternatives with Better ROI: Top Tools Compared
HeadSpin Alternatives with Better ROI: Top Tools ComparedHeadSpin Alternatives with Better ROI: Top Tools Compared
HeadSpin Alternatives with Better ROI: Top Tools Compared
Shubham Joshi
Marketo User Group - Singapore - April 2025
Marketo User Group - Singapore - April 2025Marketo User Group - Singapore - April 2025
Marketo User Group - Singapore - April 2025
BradBedford3
From Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoT
From Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoTFrom Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoT
From Tracks to Highways: Boosting Infrastructure Safety with Mobile Edge AIoT
Eurotech
Java and AI with LangChain4j: Jakarta EE gets AI
Java and AI with LangChain4j: Jakarta EE gets AIJava and AI with LangChain4j: Jakarta EE gets AI
Java and AI with LangChain4j: Jakarta EE gets AI
Edward Burns
Software Architecture and Design in the Age of Code Assist tools.pdf
Software Architecture and Design in the Age of Code Assist tools.pdfSoftware Architecture and Design in the Age of Code Assist tools.pdf
Software Architecture and Design in the Age of Code Assist tools.pdf
Manu Pk
Autodesk MotionBuilder 2026 Free Download
Autodesk MotionBuilder 2026 Free DownloadAutodesk MotionBuilder 2026 Free Download
Autodesk MotionBuilder 2026 Free Download
blouch52kp
Image-Line FL Studio 20.8.3.2304 crack free
Image-Line FL Studio 20.8.3.2304 crack freeImage-Line FL Studio 20.8.3.2304 crack free
Image-Line FL Studio 20.8.3.2304 crack free
alihamzakpa084
NANO Antivirus Pro Crack + License Code Free 2025
NANO Antivirus Pro Crack + License Code Free 2025NANO Antivirus Pro Crack + License Code Free 2025
NANO Antivirus Pro Crack + License Code Free 2025
bhashmi963
The Open-Closed Principle - Part 1 - The Original Version
The Open-Closed Principle - Part 1 - The Original VersionThe Open-Closed Principle - Part 1 - The Original Version
The Open-Closed Principle - Part 1 - The Original Version
Philip Schwarz
DriverPack Solution Crack 17.10.14-24080
DriverPack Solution Crack 17.10.14-24080DriverPack Solution Crack 17.10.14-24080
DriverPack Solution Crack 17.10.14-24080
alihamzakpa035
IObit Driver Booster Pro 12.3.0.557 Free
IObit Driver Booster Pro 12.3.0.557 FreeIObit Driver Booster Pro 12.3.0.557 Free
IObit Driver Booster Pro 12.3.0.557 Free
mohsinrazakpa95
Async Excellence Unlocking Scalability with Kafka - Devoxx Greece
Async Excellence Unlocking Scalability with Kafka - Devoxx GreeceAsync Excellence Unlocking Scalability with Kafka - Devoxx Greece
Async Excellence Unlocking Scalability with Kafka - Devoxx Greece
Natan Silnitsky
Movavi Video Editor Crack + Activation Key [2025]
Movavi Video Editor Crack + Activation Key [2025]Movavi Video Editor Crack + Activation Key [2025]
Movavi Video Editor Crack + Activation Key [2025]
l07307095
New-4K Video Downloader Crack + License Key 2025
New-4K Video Downloader Crack + License Key 2025New-4K Video Downloader Crack + License Key 2025
New-4K Video Downloader Crack + License Key 2025
abbaskanju3

CS50 Lecture1