temp- ROOT Tutorial: Introduction to C++
Welcome to the Monday afternoon hands-on session. We will focus today on introductory exercises about the C++ language.
After the theoretical introduction you followed, you should be able to solve the exercises. Nevertheless two levels of help will be provided: a hint and a full solution. Try not to jump to the solution even if you experience some frustration.
The help is organised as follow:
Here the solution is shown.
Some points linked to the exercises are optional and marked with a
icon: they are useful to scrutinise inmore detail some aspects of C++. Try to solve them if you have the time.
C++ is a compiled language and in order to obtain executables the procedure would imply the usage of a compiler. We will take advantage of a powerful feature of
ROOT, which allows to compile C++ code without bothering about all the complications linked to the direct usage of the compiler.
Here follows a reminder about the way in which you can compile macros from within the cint interpreter.