Lab Activity: Exploring the Compilation Process
In today's activity, the Pair Programming Lab is playing the role of a computer! It has a whopping 2 bags of RAM, and the cutting-edge CPU known as "Prof Chang". And the C++ compiler for this hardware...is you!
Before You Start…
Form groups of about 4 people each (try to stay together with your partner).
Then, do the following:
- Pick a lab machine to work on. You'll need to all be positioned so you can see the screens and potentially take the keyboard.
- Wait for Prof Chang to give you a group number.
- Have one person in the group open Visual Studio Code, and sign into the course server.
- Choose the “Open Folder” option and select and navigate to:
/cs70/spring2026/lab/week2lab1/sect1/group01(replacegroup01with your actual group number, replacesect1withsect2if you're in Section 2, and note the leading slash, this is not in your own directory).
C++ files
Your task is to compile the C++ program prog.cpp. The contents of prog.cpp, along with some associated header files, can be found at the following link, which you should keep open in a separate tab so you can refer to it.
Instructions for each stage
Only open each link when instructed to do so!
When all the stages are done, call Prof Chang over to "run" your final code!
(When logged in, completion status appears here.)