HW07 Technical Tips
Remastered
Yiran “Lawrence” Luo, Yezhou Yang
Setup
● Language of choice: C++ (highly recommended) or C
○ C++ has classes / is Object-oriented, while C is not
● Everything must work on general.asu.edu
○ A unified testing ground
○ Here is a tutorial https://fpsluozi.github.io/Linux-Setup/
○ g++ there supports up to C++17
○ Coding remotely saves a lot for compiler inconsistency
● How we are going to test it?
○ ./int < test_graph.txt > test_out.txt
○ diff test_out.txt test_answer.txt
○ We will run with hidden inputs in batches
Deliverables
● *The code files in Code/
○ *.cpp and *.h
○ Better not put implementations inside header files
○ Be well documented, comment what part does what job
● *The makefile in Code/
○ If your program fails to compile or execute, you would end up with a 0!
○ Use --std=C++17 to enforce C++ all the time (recommended)
● *The state description state.pdf in State/
○ Basically how you finish this project. Difficulties, references taken, design choices, etc.
● ZIP them, and submit
● DO NOT turn in your executable in the package (cuz they'd be
overwritten)
The Banned & The Allowed
NO. PRE-MADE. CONTAINER. LIBRARIES. This is the bottomline.
● No #include
; #include ; #include