Schleifenkopf verbessert

Initialisierung von Zählvariable "tag" in Schleifenkopf aufgenommen.
This commit is contained in:
Marc Koch 2020-05-11 16:49:14 +02:00
parent e59038ce18
commit e6e185e571
Signed by: marc
GPG Key ID: AC2D4E00990A6767
1 changed files with 1 additions and 2 deletions

View File

@ -26,9 +26,8 @@ public class Main {
static void erzeugeListe(int persnr, int[][] zeiten, int jahr, int monat) { static void erzeugeListe(int persnr, int[][] zeiten, int jahr, int monat) {
int anwesenheitMonat = 0; int anwesenheitMonat = 0;
int tag = 1;
schreibeKopfzeile(persnr, jahr, monat); schreibeKopfzeile(persnr, jahr, monat);
for (int i = 0; tag <= tageImMonat(monat, jahr); ) { for (int i = 0, tag = 1; tag <= tageImMonat(monat, jahr); ) {
int min1 = -1; int min1 = -1;
int min2 = -1; int min2 = -1;
int anwesenheitTag = -1; int anwesenheitTag = -1;