In order to get going, you will first need to generate your HW-repo from GitHub Classroom by following a link:
For example, the link we have for HW is here: https://classroom.github.com/g/22EgwhsN
When I did it, it asked me to create a "team".
I created a team called "Just-Lucas" for myself, and then GH classroom made me a copy of the HW-01 repo from our main repo and named it Homework-01-Just-Lucas.
It would be good to figure out how a team of two can be made where each person has access to the repo.
The previous step created a repo on github for you by copying the starter code from the CS70 repo.
Our goal is to get that code onto your machine and be able to edit it.
One way to do this is to use VS Code. Install and open VS Code. Then in VS Code, open a terminal or console.
Now, to get that code onto your machine you will need to go to the repository on the GitHub website copy the url, and in the VS Code terminal run
> git clone <github repo url>
You will probably be asked for some credentials.
After that works, you should be able to access and edit the cloned files from within VS Code (or any other editor, or in your file navigator, or whatever)
Now that we have the code, we want to be able to edit and save it in VS Code but compile and run it inside Docker, which has all of the necessary C++ libraries, data files, etc.
From the VS Code command line, you should be able to
> docker login
Username: ...
Password: ...
> docker pull lucasbang/cs70-student
> docker run -v $(pwd):/home/student/cs70/ -it lucasbang/cs70-student /bin/zsh
DOCKER > clang++ palindrome.cpp -o palindrome
DOCKER > ./palindrome
Edit the palindrome code in VS Code, compile and run again in Docker.
Exit docker
DOCKER > exit
> git add palindrome.cpp
> git commit -m "edited palindrome."
> git push
Content type
Image
Digest
sha256:9a734c65e…
Size
1.2 GB
Last updated
11 months ago
docker pull harveymudd/cs70-student:fall2025