All pastes #906391 Raw Edit

Anonymous

public cpp v1 · immutable
·published 2008-02-16 17:33 UTC
rendered paste body
#include <iostream>#include <fstream>using namespace std;struct movies { string titel; string rating;};int main(int argc, char *argv[]){string dao="null"; movies filmer;ofstream file("filmerna.txt", ios::ate|ios::app);cout << "Ange filmtitel: ";while(dao != ""){	getline(cin, dao);	if(dao == "")	break;	filmer.titel = dao;		cout << endl << "Ange betyg från skala 1-10: ";                getline(cin, dao);                if(dao == "")		break;		filmer.rating = dao;file << "Namn: ";file << "filmer.titel << endl;file << endl << "Betyg: ";file << filmer.rating << endl;cout << endl << "Ange namnet: ";}	file.close();return 0;}