Thư viện tài liệu, ebook tổng hợp lớn nhất Việt Nam
Website chia sẻ tài liệu, ebook tham khảo cho các bạn học sinh, sinh viên
Tổng hợp tài liệu, ebook Kỹ Thuật Lập Trình tham khảo.
Outline • Code Reuse • Object Relationships • Inheritance – What is Inherited – Handling Access • Overriding • Homework and Project
92 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 457 | Lượt tải: 1
Project • project must be completed in groups (of two) – groups will be due October 29th on Piazza – if you don’t have a group, you’ll be assigned one • start thinking about: – who you want to work with – what sort of project you want to do – what you want to name your group
95 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 490 | Lượt tải: 1
class name • member variables • member functions – constructors • default parameters – accessors – mutators – auxiliary (private and public)
99 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 452 | Lượt tải: 1
Homework 5 • Murder Mystery • heavy on use of streams – not everything you need was covered in class – look at the cplusplus.com pages on streams! • should be much easier (and shorter) than Homework 4B
88 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 497 | Lượt tải: 1
Changes for C++ – Files & Compiling – Variables – Functions • Input/Output in C++ – cin/cout/cerr – Print Functions – Reading/Writing to Files • hello_world.cpp
65 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 468 | Lượt tải: 1
Linked List Code for HW4B • code for all of these functions is available on the Lectures page • comments explain each step • you can use this code in your Homework 4B, or as the basis for similar functions
107 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 512 | Lượt tải: 1
Quick Notes • answered questions from HW2 on Piazza • magic numbers – should use #defines as you code – not replace with #define after you’re done • elegant solution to printing the full train
140 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 487 | Lượt tải: 1
Homework 3 • Memory Diagrams • write legibly • double check your work • due at BEGINNING of class, on paper – no late days for this homework!
79 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 507 | Lượt tải: 1
Trains – most difficult part of the homework is formatting the printing of the train cars! – make sure output is readable (see sample output)
127 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 486 | Lượt tải: 1
five things to do: – complete hello_world.c – complete answers.txt – turn the above two files in using turnin – read the style guide online – fill out availability for OH on when2meet • use your upenn username
56 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 487 | Lượt tải: 1