Introduction to C++
Key Information
Tutors: Dr Jesús Urtasun Elizari
Course Credit: 1 Credit
Course Level: Level 1
Prerequisites: Familiarity with basic programming concepts (variables, data types, loops, conditionals, functions) is required. The aim of this course is to introduce useful features of C++ and the instructor will proceed through the basic material quickly. If you are new to programming, we recommend that you take our online Introduction to Python (to benefit fully, complete all exercises). Alternatively, study the pre-course materials and video.
Duration: 3 x 2 hour sessions
Format: Live online or live face to face with hands-on practice.
Course Resources
C++ is a general-purpose coding language first developed in 1979 as an extension to C. Today, it has been significantly updated to include modern programming features and is heavily used for scientific computing applications in several fields due in part to its fast performance. As a result, C++ is frequently used in computationally intensive areas including high performance computing.
This course will cover the basics of how to write a C++ source file utilising the basic constructs of the language, to compile and run the code and to troubleshoot common errors, and to read and be able to use C++ code others have written. The course will be delivered through a combination of slides, demonstrations and hands-on practicals.
Syllabus:
- What is coding?
- What is C++?
- What is the compiler and how do we use it?
- My first program
- Variables and assignment, loops, conditionals, functions
- Importing libraries
- Error messages
- Navigating larger C++ libraries and projects
- Understanding C++ in practice
Learning Objectives
After completing this workshop, you will be better able to
- Define the terms source file, compiler, and executable,
- Use a compiler to create and run simple codes,
- Apply fundamental components of the C++ language including variables, loops, and conditionals,
- Create programs designed to solve simple numerical problems,
- Interpret common compiler and run-time errors and use these to help debug a program.
Dates & Booking Information
There are no further sessions taking place this academic year. Course dates for 2024-25 will be available to book from late September.
To book your place, please follow the booking process advertised on the main programme page