object - C++ Attempting to use a vector -


needing use vector film object have. having errors thrown @ me , unsure things need moved or if i'm naming things wrong. blatantly obvious.

code:

#include "std_lib_facilities.h"  int main()  {       class film      {     public:         film();         film(string sl, string el);      };      cout << "please enter first film:\n";     string start_film;     cin >> start_film;     cout << "\nplease enter second film:\n";     string end_film;     cin >> end_film;     cout << "\nplease enter date (format = dd/mm/yyyy):\n";     string date;     cin >> date;      string name;     name = "films.txt";     ifstream ist(name.c_str());      if (!ist)         error("cannot open output file " + name);      vector<film> temps; // create vector store readings     string film;     string director;     float rating;     int year;     int date;      while (ist >> film >> director >> rating >> year >> date)      { // read         // check         temps.push_back(film(film,director, rating, year, date)); // store     }      cout << "start: " + start_film + " end: " + end_filmn + " date: " + date + "\n";      keep_window_open();     return 0; } 

any structure errors can pointed out or advice on go appreciated.

warnings:

main::flight::flight local class member function not have body error: main::flight::flight : no overloaded function takes 5 arguments


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -