Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Erklärung?

Empfohlene Antworten

Hey Leute also mein tolles LottoSpiel funktioniert einwandfrei!! Danke nochmal an euch jedoch steh ich nun vor einigen kleineren Problemen. Ich muss das Prog so simpel wie möglich meiner Klasse beibringen und da einiges neu für mich ist hab ich da so meine Schwierigkeiten!

for(int i = 0; i < lottotipp.length; i++) //length gibt aus, wie viele elemente das array hat

{

richtige = 0;

for (int j = 0; j < lottotipp.length; j++)

{

for (int k = 0; k < lottozahl.length; k++)

{

if(lottotipp [j] == lottozahl [k])

richtige ++;

}

}

treffer = richtige;

}

Also in der 1. und 2. Schleife geh ich jede Zahl meines Arrays lottotipp durch!

Jedoch versteh ich grad nicht oder ich steh gewaltig aufm Schlauch was es mit dem "i" auf sich hat...also des kann ich mir selbst net so erklären die 3 Schleifen. Und mein Lehrer meinte dazu gäbe es eine Alternative! hm?!

Gruß Ketscher ^^

allesganzfalschverstanden!

i ist halt Deine Zählvariable, mit der Du jede Tippreihe durchgehst (hier 'ne Erklärung).

Und welche Alternative Dein Lehrer meint ... hm. Du könntest das auch machen wie kingofbrain (warum steht in Deinem Avatar eigenlich ka-o-be?) schon erwähnt hat. Ein 2-dimensionales Array: eine Dimension für die Tippreihen, die andere für 49 bool-Werte. Aber sonst ...

Achja: Benutz' in Zukunft bitte CODE- oder PHP-Tags.

OT:

ka (Lautschrift für 'k')

o (Lautschrift für 'o')

be (Lautschrift für 'b')

King Of Brain.

:)

Peter

:floet:

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.