Week 1 C
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.
How to download source code into VS Code
-
Log into cs50.dev.
-
In your terminal window, type
wget https://cdn.cs50.net/2024/fall/lectures/1/src1.zip
followed by Enter in order to download a Zip file of lecture’s source code into your codespace.
-
In your terminal window, type
unzip src1.zip
followed by Enter to unzip (i.e., decompress) that Zip file.
-
In your terminal window, type
cd src1
followed by Enter in order to “change directory” into that
src1
directory (i.e., folder). -
In your terminal window, type, e.g.,
make hello0
followed by Enter in order to compile, e.g.,
hello0.c
(source code) intohello0
(machine code). -
In your terminal window, type, e.g.,
./hello0
followed by Enter in order to run, e.g.,
hello0
.
- Lecture
- Notes
- Slides
- Source Code
- Video
- Shorts
- Check for Understanding 1
- Problem Set 1