Lecturer: Marek
Piasecki, PhD Tutorial hours: will be announced in the second week of the semester |
|||
Lecture | Laboratory | ||
Hours / sem. (h) : | 30 | 45 | |
ECTS : | 8 |
- |
RECOMMENDED free eBook / Wikibooks (in English, Polish and some other languages): - C programming [EN] or Język C [PL] ( C PDF ) - C++ programming [EN] or Język C++ [PL] ( C++ PDF ) - W3schools "C Tutorial" ( + examples + "Try it yourself" ) - W3schools "C++ Tutorial" ( + examples + "Try it yourself" ) |
For more advanced students: Something to read and think over: Why aren't "variable-length" arrays part of the C++ standard?, i.e. discussion, why there are problems with VLA (Variable Lenght Array) which was introduced / allowed in C language version C99: int my_size; double my_array[my_size]; especially, when somebody try to modify the variable "my_size" later: i.e.. scanf("%d", &my_size); or my_size = my_size+1; + article "Legitimate Use of Variable Length Arrays" by Chris Wellons " . . . In general, VLAs not useful. They’re time bombs. VLAs are nearly always the wrong choice . . . " |