No wait list: everyone's in! Also: grades
Why use C or C++?
How to compile a single file
How to compile multiple files
Compilation with Java
Compilation with Python
Compilation with C
The 3 commands we'll focus on today
Create your own dialect of Python!
#define with an argument
How to reveal the answer?
#ifndef is the opposite of #ifdef
These are simple operations
#include: just a string replacement
Returns string or int!
Type-checker sees only types
Type-checker's point of view
These don't match
Return type depends on arguments
Return type is declared
Cast a to float
All theoretical casts (left-to-right)
All allowed casts
No floating point ↔ memory address casts
Memory addresses of integers
Declaration and Definition
Could we put the definition in another file?
And perhaps the declaration too?
If we remove the definition of answer…
But we can put answer's definition in another file
The compile error remains
Fix it with a declaration (in a header file)
Best practice: include header here too