(Created page with "## Basics You can find (and edit) the code examples from today in the following links: [https://replit.com/@abnutzer/CppDataTypes#main.cpp Data Types] Classes Po...") |
(No difference)
|
Revision as of 10:21, 19 April 2021
- Basics
You can find (and edit) the code examples from today in the following links:
Data Types Classes Pointers
As your homework task I want you to extend the code in Repl.it. as follows:
For the "Classes" example above, add a Header (Point2D.h) and a Function definitions (Point2D.cpp) file to the project where you define the class and its functions seperately. Finally include the header file with #include "Point2D.h" in the main.cpp file, so we can use our custom C++ class. Watch the online tutorial below to learn how to do that!