rendered paste body#include <iostream>#include <fstream>#include <string>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, filmer.rating); if(dao == "") break; file << "Namn: " << filmer.titel << endl << "Betyg: " << filmer.rating << endl;cout << endl << "Ange namnet: ";} file.close();return 0;}