E N D
CIS 330: _ _ _ _ ______ _ _____ / / / /___ (_) __ ____ _____ ____/ / / ____/ _/_/ ____/__ __ / / / / __ \/ / |/_/ / __ `/ __ \/ __ / / / _/_// / __/ /___/ /_ / /_/ / / / / /> < / /_/ / / / / /_/ / / /____/_/ / /__/_ __/_ __/ \____/_/ /_/_/_/|_| \__,_/_/ /_/\__,_/ \____/_/ \____//_/ /_/ Review: Review. Pavel Govyadinov, University of Oregon June 6th, 2014
Know your Enemy: Need to Know • Vocabulary. • Make sure you know your pointers from your references. • Debug. • Know how to find errors and what causes them. • What is a segfault? What causes it? Can you find one by reading the code? • Malloc/free, new/delete? • Track Program Execution. • Know the output. • Unix. • Know you commands (basic)—No vi/vim.
Know your enemy: Types of Questions. • Vocabulary. • Here is a hierarchy. Write some code (inheritance). • Debug. • Here is some code. There is a bug. Find the bug. • Track Program Execution. • Here is some code. Here are some print statements. What will print? • Unix.
Review: Here is some code6… 2 errors.
Review: Here is some code6… 2 errors.
Review: Here is some code1… 5 errors.
Review: Here is some code1… 5 errors.
Review: Here is some code2… 3 errors.
Review: Here is some code2… 3 errors.
Review: Here is some code3… 5 errors.
Review: Here is some code3… 5 errors.
Review: Here is some code4… 4 errors.
Review: Here is some code4… 4 errors.
Review: Here is some code5… 3 errors.
Review: Here is some code5… 3 errors.