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.

Empfohlene Antworten

Veröffentlicht

und wieder hallo leutz :)

folgendes:

ich möchte eine datei zeilenweise auslesen...

das dumme is, ich weiß nicht was ich dafür nehmen soll...

ifstream() klappt nicht, da in einer zeile 3 werte stehen, die durch leerzeichen getrennt sind, bei fscanf() isses das gleiche und ansonsten kenn ich nur noch fread(), aber dabei muss man die anzahl der einzulesenden chars angeben und das is dämlich!

die datei besteht nämlich aus 56 chars pro zeile, aber sie wird durch ein anderes programm generiert und die anzahl der zeilen ist theoretisch nach oben hin offen... :(

tja nun... ich danke schon mal im voraus!

yourz g-sus

hey cool, thx! :D

weißt du eigentlich irgendwas nicht? *fg*

erm nuja... wie ließ ich denn nu bis die datei leer ist?

eof() braucht ein handle, aber das nutze ich mit ifstream() ja nicht...

g-sus

Originally posted by g-sus

weißt du eigentlich irgendwas nicht? *fg*

Naja, gerade jetzt weiß ich z.B. nicht, wo der Fehler in dem Gerätetreiber steckt, den ich debuggen muss... :rolleyes:

erm nuja... wie ließ ich denn nu bis die datei leer ist?

eof() braucht ein handle, aber das nutze ich mit ifstream() ja nicht...

ifstream hat auch eine eof()-Methode. Nachdem getline die letzte Zeile ausgelesen hat, ist f.eof() true.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.