Add templates
This commit is contained in:
@ -3,10 +3,19 @@ title: Operatoren
|
||||
description: Folien für das erste Tutorium in Programmieren 1
|
||||
url: https://git.haw-hamburg.de/pm1-tutorium/slides
|
||||
---
|
||||
# Operatoren
|
||||
|
||||
```java
|
||||
class String {
|
||||
private int rest = 233234 % 6; //Kommentar
|
||||
}
|
||||
```
|
||||
# Operatoren
|
||||
Eva Meinen und Henri Burau
|
||||
|
||||
---
|
||||
|
||||
Vorzeichen: +, - +, -, *, /, %
|
||||
präfix: ++, --
|
||||
logische Operatoren: ! && ||
|
||||
Vergleiche <, <=, >, >= ==, != -> == prüft und = weist zu Prioritäten
|
||||
|
||||
Ideen für Aufgaben: - 3 * 5 - 14 % 5 - true && false - false || true - +3 -6 - int x = 0;
|
||||
- x += 3; - x =+ 5;
|
||||
- int i = 3;
|
||||
int b = ++i - 1;
|
||||
int c = i++ * 6;
|
||||
|
Reference in New Issue
Block a user