Programming
About the course
Cannot be taken as a single subject.
Introduction to C / C++ Programming
Variables and basic types
Strings, Vectors and Arrays
Expressions and control Statements
Functions
Unit testing in C++
Classes
The C++ Library / File Processing
C++11 / 14 features
Admission requirements
Objectives of the course
After completing the subject, the students will have the following learning outcome:
Knowledge and understanding:
- The candidate will know how a program is created from source code to a running program
- The candidate willl be familiar with concepts such as compiler, linker, machine code, executable code
- The candidate will know how a program is built up from sequences, loops, control stuctures, functions, objects and classes
- The candidate will know the concept of recursion
- The candidate will know how to transfer parameters to and from a function
- The candidate will be able to distinguish differences between C++ an other well-known programming languages
- The candidate will have an overview of the content of the standard library
Skills:
- The candidate will be able to use a programming environment for program development (IDE, Integrated Development Environment)
- The candidate will be able to write a program that use functions to develop modular programs
- The canditate will be able to debug a program
- The candidate will be able to write a program that reads and writes to files
- The candidate will be able to write programs that use structs and classes
- The candidate wil be able to use pointers and different parameter transfer mechanisms
- The candidate will be able to write unit tests
- The candidate will be able to create programs that uses data structures and algorithms from the C++ standard library
- The candidate will be able to create DLLs
General competence:
- The candidate will be able to see the benefit of writing well-structured programs
- The candidate should see the benefit of thinking through a problem, and find / write an pseudo-code algorithm to solve problems
- The candidate should be able to use other programming IDE's and languages
Teaching methods
Lectures and written exercises.
Lecture 1 - 2 hours, thereafter lab exercises 1 - 3 hours. All lectures will be held in a computer lab. Mandatory exercises in addition to lab exercises.
Language of instruction and examination
EnglishRecommended reading/syllabus
Textbook: Probably Lippman / Lajoije / Moo: C++ Primer, fifth ed. or higher, definitive information will be given 5-6 weeks in advance.Assessment
Mandatory exercises
3 mandatory exercises
Exam
3 hours written exam, if possible as digital.
Grading scale is from A (highest) to F (lowest), with E as the minimum pass grade.
There will be arranged a re-sit exam for this course
Error rendering component