Unit 0 - 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.
Lecture
Resources
Practice and Problems
- Practice:
- Complete Hello, World
- Make this in your
practicefolder
- Make this in your
- Submit Hello, It’s Me
- Make this in a subfolder of
practicecalledmeand a file calledhello.c
- Make this in a subfolder of
- Complete Population Lab
- Check:
check50 cs50/labs/2023/x/populationhopefully will work - Submit:
submit50 cs50/labs/2023/x/populationshould work to submit, but may not check on submission
- Check:
- Complete Hello, World
- Problem Sets:
Inside a new subfolder folder as suchunit0/psetcreate the following:- Submit one of:
- this version of Mario if feeling less comfortable
- this version of Mario if feeling more comfortable
- Submit one of:
If you submit both versions of Mario, I’ll record the higher of your two scores. If you submit both Cash and Credit, I’ll record the higher of your two scores.
- Submit one of:
Advice
- Try out any of the programs from class via the source code above
- If you see any errors when compiling your code with
make, focus first on fixing the very first error you see, scrolling up as needed. If unsure what it means, try askinghelp50for help. For instance, if trying to compilehello, andmake hellois yielding errors, try running
help50 make helloinstead!