UFAF508 Programming in C-language

Faculty of Philosophy and Science in Opava
Summer 2020
Extent and Intensity
2/1/0. 4 credit(s). Type of Completion: z (credit).
Teacher(s)
doc. RNDr. Jan Schee, Ph.D. (lecturer)
doc. RNDr. Jan Schee, Ph.D. (seminar tutor)
Guaranteed by
doc. RNDr. Jan Schee, Ph.D.
Centrum interdisciplinárních studií – Faculty of Philosophy and Science in Opava
Timetable
Mon 13:05–14:40 LPS
  • Timetable of Seminar Groups:
UFAF508/A: Mon 14:45–15:30 LPS, J. Schee
Prerequisites (in Czech)
Nejsou.
Course Enrolment Limitations
The course is also offered to the students of the fields other than those the course is directly associated with.
fields of study / plans the course is directly associated with
Course objectives
The basics of programming in C-language is the aim of this course.
Syllabus
  • *Installation. Development envieronvement, source code writing, code debugging.
    *Structure and syntax. Declaration and definution of functions, types of returned values, function arguments. Loops and branchng: commands WHILE, Do, FOR, IF, SWITCH, BREAK, CONTINUE,
    GOTO.
    *Data types. Basic data types (char, int, float). Variables and constants specification, characters and strings, structures, bit array.
    *Visibility of variables (extern, static), life-time (auto), conversion of data type, renaming existing type (typedef).
    *Preprocesor directives. Including files using directive INCLUDE, directive DEFINE and its usage for macro redefinition, UNDEF for canceling of definitions. Conditional directives (IF, ELSE, ENDIF, IFDEF, ELIF). Conditional directive DEFINED.
    *Pointers. Pointers to simple variables, their declaration and initialization. Pointers to arrays and strings, text string initialization. Pointer as function argument. Pointer array and pointer pointing to another pointer.
    *UNIX(DOS) command line argument processing. Pointers and functions.
    *Files. Stream operations through FILE data type, file opening (fopen) and methods to access a file, file closing (fclose), writing and reading strings (fputs, fgetc), writing and reading of formatted data (fprintf, fscanf).
    *Graphics. Graphical regime initialization, screen raster organization, control of videoregime, SDL library usage.
Literature
    recommended literature
  • Herout, P. Učebnice jazyka C - I. díl. Kopp, České Budějovice, 2010. info
  • Herout, P. Učebnice jazyka C - II. díl. Kopp, České Budějovice, 2010. info
Teaching methods
Lecture supplemented with a discussion
Skills demonstration
Assessment methods
The analysis of student 's performance
Credit
Language of instruction
Czech
Further comments (probably available only in Czech)
The course can also be completed outside the examination period.
Teacher's information
Will be communicated at the beginning of semester.
The course is also listed under the following terms Summer 2017, Summer 2018, Summer 2019, Summer 2021, Summer 2022, Summer 2023, Summer 2024.
  • Enrolment Statistics (Summer 2020, recent)
  • Permalink: https://is.slu.cz/course/fpf/summer2020/UFAF508