Appendix

About

This section is included to assist the students to perform the activities in the book. It includes detailed steps that are to be performed by the students to achieve the objectives of the activities.

1. Anatomy of Portable C++ Software

Activity 1: Adding a New Source-Header File Pair to the Project

In this activity, we will create a new source-header file pair that contains a new function named sum. It takes two parameters and returns their sum. This file pair will be added to the existing project. Follow these steps to implement this activity:

  1. First, open the Eclipse IDE with the existing project that we created in Exercise 3, Adding New Source Files to CMake and Eclipse CDT. Right-click on the src folder in the Project ...

Get Advanced C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.