Introduction to C++ (3op)
Opintojakson tunnus: LUD2007
Opintojakson perustiedot
- Laajuus
- 3 op
- Opetuskieli
- englanti
- Vastuuhenkilö
- Anssi Gröhn, Vastuuopettaja
Osaamistavoitteet
* You are able to compile source files into an executable form using a C compiler.
* You understand basic concepts of C and procedural programming.
* You know what a structure is.
* You know what a header file is.
* You know what a source file is.
* You know what macros are.
* You know how macros are used.
* You understand input system provided by C and are able to apply it to your own programs.
* You are able to write a fully functional program that asks user input, processes input in some way, and prints command line output to user.
* You understand what pointers and references are.
* You know the what a pointer and a reference look like in source code and are able to separate them.
* You are able to use arrays in your programs.
* You are able to use structures in your programs.
* You are able to use functions in your programs.
* You are able to use pointers and references in your programs.
* You are able to store several values into an array using a single data type.
* You are able to combine several values that are related to each other into a structure.
* You are able to create a function that solves certain problem using specific set of values.
* You are able to process a certain data without duplicating it.
* You are able to process data using pointers and references.
* You are able to utilize dynamic memory allocation and de-allocation in your programs.
* You are able to make program to allocate arbitrary amount of memory space for some data during runtime, and de-allocate it when it is not needed anymore.
* When given enough time, you are able to find out program operation just by looking C source code.
Sisältö
Structure of C program
Data types
Control structures
Loops
Structs
Pointers
References
Arrays
Dynamic memory allocation
Functions
Multi-file programs
Preprocessor macros