All pastes #907228 Raw Edit

Something

public cpp v1 · immutable
·published 2008-02-17 11:57 UTC
rendered paste body
#include <iostream>#include <cstdlib>#include <fstream>#include <string>using namespace std;struct counter{        int tal1;        int tal2;        int resultat;};int main(){    while(true)    {        string line;        ifstream file("texten.txt");        if(file.is_open())        {            while (! file.eof() )            {                getline (file, line),                cout << line << endl;            }        file.close();        }        else cout << "Error, can read file!";        int temp = 0;        cout << "Vad vill du göra nu? (0: Fortsätta, 1: Avsluta)\n";        cout << "----------------------------------------------\n";        cin >> temp;        if (temp!=0)        {                       break;        }    }    system("clear");    return 0;}