Course material for the course "Programming in C++", 9 --13 May 2022, organized by the Jülich Supercomputing Centre, Forschungszentrum Jülich, Germany.
Course material for the course "Programming in C++", 9 --13 May 2022,
organized by the Jülich Supercomputing Centre,
Forschungszentrum Jülich, Germany.
# cxx2022
You will need to pull from this repository periodically during this course.
If your computer does not have "git", you will need to use the download
button to the left of the "Clone" button in the gitlab page.
## Recommended way of working with this material
The downloaded or cloned material from this repository will be updated
during the course days. You should keep one copy of the examples and
exercises in the pristine form, and work on your own duplicates.
For example, to work on the examples in Chapter1 of the companion book,
do as follows:
```bash
cd Book/chapter1
cp-r examples mine
cd mine
clang++ -std=c++20 math_functions.cc
./a.out
```
Only examples (which includes some exercises) and solutions need to
be duplicated. You don't need to clone the entire material as that
includes the PDFs of the book, course slides and other utillities.
## Testing your set up
To work with this material, you will need to have a fairly up-to-date
C++ compiler. GCC version 11.2 or Clang version 13.0 is recommended.
Microsoft's Visual C++ compiler has excellent support for C++20, if
you have the latest version installed. During the course, we will focus
on using open source tools, which are available to everyone, rather