←to practical programming
- Lecture
-
- Structure of a C#-program; Main method;
- Operators;
- Conditional statements
if
, switch
and loops while
, for
,
do-while
;
- Scope of variables; Variable shadowing;
- Simple output with
System.Console.Write
method.
- Reading
-
- C#-syntax / Program structure[→];
- C#-syntax / Operators[→];
- Note "scope"[→];
- Math functions in the
System.Math
[→] class;
System.Console.Write
[→] method for simple output;
-
Makefile automatic variables[→]:
$@
(the target),
$<
(the first prerequisite),
$^
(all prerequisites);
- Exercises
-
- Exercise "math".
- Exercise "epsilon".
- Questions "basics".
- Hints:
-
- In bash prompt
↑
and ↓
keys scroll over the previously issued commands.
- In bash prompt
!text
runs the latest command that
begins with text
. Useful for issuing the same command again.