Download presentation
Presentation is loading. Please wait.
Published byRoderick Merritt Modified over 6 years ago
1
Basic C++ What’s a declaration? What’s a definition?
What goes in a header (.h) file? What goes in a .cpp file? What value does C++ assign to unitialized variables? What does #include do What does #define do? CS-1030 Dr. Mark L. Hornick
2
Basic C++ When is a constructor called? When is a destructor called?
When is a copy constructor called? Which constructors does the C++ compiler supply for you (if you don’t)? Why would you use a destructor? CS-1030 Dr. Mark L. Hornick
3
Using C++ Given a UML class diagram, be able to write a header (.h) file Given a header file, be able to write a UML Class diagram Given source (.cpp) files, be able to write a UML Sequence diagram CS-1030 Dr. Mark L. Hornick
4
Using C++ Given source files containing preprocessor directives like #ifdef and #define, describe what output the running program will produce. Be able to write a simple C++ program that produces formatted output. CS-1030 Dr. Mark L. Hornick
5
Pointers, References, & Dynamic Memory
CS-183 11/19/2018 Pointers, References, & Dynamic Memory What is a pointer? What does a pointer contain? How do you declare a pointer to an item (primitive or object)? How do you set a pointer to point to an item? How do use a pointer to an item to get the value of that item? If you have a pointer to an object, how do you access a member function f() of that object? CS-1030 Dr. Mark L. Hornick Dr. Mark L. Hornick
6
Dynamic Memory What does the new() operator do in C++?
What does the new() operator return? What do you assign the return value of new() to? Does C++ do garbage collection? What do you have to do later after using new()? CS-1030 Dr. Mark L. Hornick
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.