Repository navigation
Assignment 1
JoelYYoung edited this page Jul 30, 2026
·
45 revisions
$tree Assignment-1
├── Assignment-1.cpp
├── Assignment-1.h
├── CMakeLists.txt
└── test-exes
├── Test.cpp
├── test1.graph.txt
├── test2.graph.txt
└── test3.graph.txt
- Implement methods
printPathandDFSof classGraphTraversalinAssignment-1.cpp. - Pass the tests without any assertion using
test-exes/Test.cpp. - Submit
Assignment-1.cppto canvas. Your implementation will be evaluated against our 10 internal tests. You will get the full marks if your code can pass them all. Our internal tests are not publicly available. You are encouraged to add more test cases by yourself to validate the correctness of your implementation.
*You will be working on Assignment-1.cpp only and there is NO need to modify other files under the Assignment-1 folder
1. launch.json
You need to set the "program" to be the executable file of Assignment 1, i.e., "${workspaceFolder}/bin/ass1" and arg as "${workspaceFolder}/Assignment-1/test-exes/test1.graph.txt" in launch.json in order to run and debug

- 'Step over' to the next step of your program
- 'Step in' to the current line of your program
- 'Step out' to mainstream of your program where you stepped in before
