Week 2
Arrays
How to download source code into Visual Studio Code
-
Log into code.cs50.io using your GitHub account.
-
In your terminal window, type
wget https://cdn.cs50.net/2021/fall/lectures/2/src2.zip
followed by Enter in order to download a Zip file of lecture’s source code into your IDE.
-
In your terminal window, type
unzip src2.zip
followed by Enter to unzip (i.e., decompress) that Zip file.
-
In your terminal window, type
cd src2
followed by Enter in order to “change directory” into that
src2
directory (i.e., folder). -
In your terminal window, type, e.g.,
make hi0
followed by Enter in order to compile, e.g.,
hi0.c
(source code) intohi0
(machine code). -
In your terminal window, type, e.g.,
./hi0
followed by Enter in order to run, e.g.,
hi0
.
- Lecture
- Notes
- Slides
- Source Code
- Video
- Shorts
- Section
- Slides
- Source Code
- Video
- Quiz 2
- Lab 2
- Problem Set 2