456-0523/02 – Programming in C/C++ (CPP)

Gurantor departmentDepartment of Computer ScienceCredits4
Subject guarantordoc. Mgr. Jiří Dvorský, Ph.D.Subject version guarantordoc. RNDr. Jindřich Černohorský, CSc.
Study levelundergraduate or graduateRequirementChoice-compulsory
Year2Semestersummer
Study languageCzech
Year of introduction2007/2008Year of cancellation2010/2011
Intended for the facultiesFEIIntended for study typesBachelor
Instruction secured by
LoginNameTuitorTeacher giving lectures
C1E65 doc. RNDr. Jindřich Černohorský, CSc.
KOR206 Ing. Jan Kordas
MUS110 Ing. Karel Musil
Extent of instruction for forms of study
Form of studyWay of compl.Extent
Full-time Credit and Examination 2+2
Part-time Credit and Examination 2+2

Subject aims expressed by acquired skills and competences

The aim of the subject is practical programming in C++ applying the whole lifecycle of a programme, debugging and tuning of the code. Modern and object oriented parts of C++ and template library are highlited. The reasonable part of a semestral project is the documentation for programmer and for user.

Teaching methods

Lectures
Tutorials

Summary

Intrinsic data types and structures and pointers are covered, plus the language constructs for loops, relational expressions, branching statements and the C++ build process. C++ extensions and additions to the C language, such as class construct and objects and messages, are examined. Students gain practice in using the concepts of class membership, templates and hierarchy (including inheritance), function overloading, operator overloading and virtual functions. Upon completion, students are able to write a complex C++ program, having multiple source files and using address-based and object oriented programming.

Compulsory literature:

ECKEL. Bruce. Thinking in C++. Prentice Hall Stroustrup, B.: The programming language C++ SCHILDT. Herbert. Teach yourself. Osborne

Recommended literature:

SCHILDT. Herbert. Nauč se sám C++. Osborne/Softpress. 2000. ISBN 80-86497-13-5 SCHILDT. Herbert. Nauč se sám C. Osborne/Softpress. 2000. ISBN 80-86497-16-X Sylaby přednášek. Eletronické výukové materiály: HTML a Macromedia Flash simulace. Virius M.: Pasti a propasti jazyka C++, ComputerPress, Praha 2005, druhé vydání, ISBN 80-251-0509-1 Sedgewick R.: Algoritmy v C, části 1-4, SoftPress, Praha 2003, ISBN 80-86497-56-9

Way of continuous check of knowledge in the course of semester

Podmínky udělení zápočtu: Získat alespoň 10 bodů za semestrální projekt a 7 bodů za domácí příklady tj. celkem 17 bodů za zápočet z 35 možných bodů

E-learning

Other requirements

Prerequisities

Subject has no prerequisities.

Co-requisities

Subject has no co-requisities.

Subject syllabus:

Lectures: The algorithm , the means for algorithm notation Introduction to C, input and output, how the processor code is created. Source code, object code, linking, compilation. Data types, operators, expressions, constants. Operators - arithmetical, assignment, relational, logical, conditionl expression, type conversion Statements and blocks. Comma operator. Break and continue statements. Register variables. Loop statements for and do-while. Simple program. Arrays. Functions. Automatic and external variables. Recursive functions Pointers, arrays, functions. Pointers and addresses, pointers and function arguments. Pointers and arrays. Pointers and constants. Command line arguments. Initialization of arrays and arrays of pointers. Standard C library functions. Making library functions in Code Warrior environment. Structures, classes, unions, bit arrays, structures and classes, Array of structures, union type, anonymous type union and bit array. Object oriented programming. Classes and objects in C++. Access modifiers. Inheritance. Polymorphism in C++, early and late binding. Overloading. Templates.

Conditions for subject completion

Full-time form (validity from: 1960/1961 Summer semester)
Task nameType of taskMax. number of points
(act. for subtasks)
Min. number of pointsMax. počet pokusů
Exercises evaluation and Examination Credit and Examination 100 (100) 51 3
        Exercises evaluation Credit 45 (45) 0 3
                Written exam Written test 45  0 3
        Examination Examination 55 (55) 0 3
                Oral Oral examination 55  0 3
Mandatory attendence participation:

Show history

Conditions for subject completion and attendance at the exercises within ISP:

Show history

Occurrence in study plans

Academic yearProgrammeBranch/spec.Spec.ZaměřeníFormStudy language Tut. centreYearWSType of duty
2009/2010 (B2649) Electrical Engineering (2601R004) Measurement and Control Engineering P Czech Ostrava 2 Choice-compulsory study plan
2009/2010 (B2649) Electrical Engineering (3901R039) Biomedical Technician P Czech Ostrava 1 Optional study plan
2009/2010 (B2649) Electrical Engineering (2601R004) Measurement and Control Engineering K Czech Ostrava 2 Choice-compulsory study plan
2008/2009 (B2649) Electrical Engineering (2601R004) Measurement and Control Engineering P Czech Ostrava 2 Choice-compulsory study plan
2008/2009 (B2649) Electrical Engineering (2601R004) Measurement and Control Engineering K Czech Šumperk 2 Choice-compulsory study plan
2008/2009 (B2649) Electrical Engineering (2601R004) Measurement and Control Engineering K Czech Ostrava 2 Choice-compulsory study plan
2008/2009 (B2649) Electrical Engineering (3901R039) Biomedical Technician P Czech Ostrava 1 Optional study plan
2007/2008 (B2649) Electrical Engineering (2601R004) Measurement and Control Engineering P Czech Ostrava 2 Choice-compulsory study plan
2007/2008 (B2649) Electrical Engineering (2601R004) Measurement and Control Engineering K Czech Ostrava 2 Choice-compulsory study plan
2007/2008 (B2649) Electrical Engineering (3901R039) Biomedical Technician P Czech Ostrava 1 Optional study plan

Occurrence in special blocks

Block nameAcademic yearForm of studyStudy language YearWSType of blockBlock owner

Assessment of instruction



2009/2010 Summer