Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as C++ by 123 ( 4 years ago )
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int x;
ifstream quelle;
//Abfragen welche Funktion ausgeführt werden soll:
cout << "Wählen Sie eine der folgenden Funktionen!" << endl;
cout << endl;
cout << "1: Einlesen einer Datei" << endl;
cout << "2: Einlesen eines Teils" << endl;
cout << "3: Auslesen eines Teils" << endl;
cout << "4: Auslesen der aktuellen Fifos am Bildschirm" << endl;
cout << "5: Programm beenden" << endl;
cout << endl;
cin >> x;
cout << endl;
if (x=1) {
quelle.open ("fifos.txt");
if (quelle.fail()) {
cout << "Datei nicht gefunden!" << endl;
return 0;
}
while (quelle.good()) {
}
}
return 0;
}
Revise this Paste