Skip to content

C++ Course Taught at CERN, from Sebastien Ponce (LHCb)

License

Notifications You must be signed in to change notification settings

amadio/cpluspluscourse

 
 

Repository files navigation

C++ course

HSF Training Center

All Contributors

pre-commit.ci status gh actions gh actions gh actions

This repository contains all material for the C++ Course taught at CERN from Sebastien Ponce (LHCb).

📎 Getting the latest PDF

For each commit to master, the slides are compiled to a PDF and uploaded to the download branch.

📹 Video recordings & events

Video recordings are available in the past events.

Check this page for announcements of upcoming training events (including those with this material).

🧰 Development setup

Make sure to install the pre-commit hooks:

pip3 install pre-commit
# cd to repository
pre-commit install

Spell checking

Spell check is performed with the codespell pre-commit hook on every commit. To ignore words you can put them in the codespell.txt file. This file should list the supposedly misspelled words with one word per line and is case-sensitive.

C++ guidelines

  • Prefer "east const" for new stuff.

Exercises guidelines

Instructions for mentors and students

Students should start with the README in the respective exercise folders. These have the basic building instructions, give the name of the main program file, and possibly give a summary of the exercise goals and steps.

Inside the code, one gets more precise help on what should/could be done. If the code is longer and only some parts need to be touched, this is often pointed out with comments.

Solutions to exercises

Each exercise should provide a solution in the solution subdirectory. For any <name>.cpp exercise, the solution should be called solution/<name>.sol.cpp. We invite students to only consult the solution when they completed an exercise or when they are really stuck. The preferred order is:

  1. Work on the exercise and consult the slides
  2. Discuss problems and questions with the class and the mentor
  3. Consult the solution

About building

For the time being, we maintain both a raw Makefile and a CMakeLists.txt.

The make command should work directly on any linux-like system. The make solution command should build the solution.

The cmake tool adds support for building on Windows. It is meant to be used in a build subdirectory:

mkdir build
cd build
cmake ..
make
make solution

For Mentors

Depending on which course is running, consult the schedule for exercise sessions in essentials or advanced. For mentors, there is a cheat sheet with hints towards the solutions and key points to discuss during the exercise sessions.

Contributors ✨

Thanks go to these wonderful people (emoji key):


Abhishek L

🖋

Attila Krasznahorkay

🖋

Bernhard Manfred Gruber

🖋

David Chamont

🖋

Enrico Guiraud

🖋

Graeme A Stewart

🖋

Kilian Lieret

🚇

Sebastien Ponce

🖋

Stefan Roiser

🖋

Stephan Hageboeck

🖋

bcouturi

🖋

This project follows the all-contributors specification. Contributions of any kind welcome!

About

C++ Course Taught at CERN, from Sebastien Ponce (LHCb)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TeX 78.1%
  • C++ 17.4%
  • CMake 2.4%
  • Makefile 1.4%
  • Shell 0.4%
  • Python 0.2%
  • Other 0.1%