Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- int main ()
- {
- string inhalt;
- int anzahl = 0;
- fstream f;
- f.open("kunden.txt", ios::in);
- while(!f.eof())
- {
- getline (f, inhalt);
- if (inhalt == "")
- {
- anzahl++;
- }
- }
- cout << "Die Datei enth\204lt " << anzahl-1 << " Kunden.";
- }
Add Comment
Please, Sign In to add comment