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.

Zahlen aus einer TXT Datei einlesen und in 2d Array speichern

Empfohlene Antworten

Veröffentlicht

Hallo Ihr Leut,

wir schreiben gerade ein 'Lotto' Programm und in einem Array

sollen die 12x6 Zahlen der 'getippten' Zahlen gespeichert sein.

Vorgabe ist diese Zahlen als 2d Array einzulesen und dann mit den eingegeben 'gezogenen' Zahlen zu vergleichen und auf der Konsole eine Auswertung der Treffer auszugeben.

Ich hab leider nur keine Ahnung wie ich die Zahlen in den Array bekommen soll...

wir hatten fopen und fscanf besprochen... leider hatte ich mein Hirn wohl auf Durchzug gestellt....

der ganze Quellcode...

http://pastebin.com/stZnKRHa

Bin für jede Hilfe dankbar.

LG

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.