• C/c++ programming - Lecture 11: PolymorphismC/c++ programming - Lecture 11: Polymorphism

    Outline • Review of Inheritance • Polymorphism – Limitations – Virtual Functions – Abstract Classes & Function Types – Virtual Function Tables – Virtual Destructors/Constructors • Application of Polymorphism • Project Alphas

    pdf64 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 22 | Lượt tải: 0

  • C/C++ programming - Lecture 10: InheritanceC/C++ programming - Lecture 10: Inheritance

    Outline • Code Reuse • Object Relationships • Inheritance – What is Inherited – Handling Access • Overriding • Homework and Project

    pdf92 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 23 | Lượt tải: 0

  • C/c++ programming - Lecture 9: Vectors, enumeration, overloading, and more!C/c++ programming - Lecture 9: Vectors, enumeration, overloading, and more!

    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

    pdf95 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 17 | Lượt tải: 0

  • C/c++ programming - Lecture 8: Classes in C++C/c++ programming - Lecture 8: Classes in C++

    class name • member variables • member functions – constructors • default parameters – accessors – mutators – auxiliary (private and public)

    pdf99 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 29 | Lượt tải: 0

  • C/C++ Programming - Lecture 7: C++ StreamsC/C++ Programming - Lecture 7: C++ Streams

    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

    pdf88 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 22 | Lượt tải: 0

  • C/C++ Programming - Lecture 6: Introduction to C++C/C++ Programming - Lecture 6: Introduction to C++

    Changes for C++ – Files & Compiling – Variables – Functions • Input/Output in C++ – cin/cout/cerr – Print Functions – Reading/Writing to Files • hello_world.cpp

    pdf65 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 15 | Lượt tải: 0

  • C/C++ Programming - Lecture 5: Linked ListsC/C++ Programming - Lecture 5: Linked Lists

    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

    pdf107 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 20 | Lượt tải: 0

  • C/c++ programming - Lecture 4: Assorted topics (and more on pointers)C/c++ programming - Lecture 4: Assorted topics (and more on pointers)

    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

    pdf140 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 20 | Lượt tải: 0

  • C/c++ programming - Lecture 3: Memory management in cC/c++ programming - Lecture 3: Memory management in c

    Homework 3 • Memory Diagrams • write legibly • double check your work • due at BEGINNING of class, on paper – no late days for this homework!

    pdf79 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 15 | Lượt tải: 0

  • C/c++ programming - Lecture 2: Not so basicsC/c++ programming - Lecture 2: Not so basics

    Trains – most difficult part of the homework is formatting the printing of the train cars! – make sure output is readable (see sample output)

    pdf127 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 19 | Lượt tải: 0