IFD:EAI SoS21/introduction to c++

From Medien Wiki
< IFD:EAI SoS21
Revision as of 10:21, 19 April 2021 by Clemensw (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    1. 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!