Looks like you have some weird problem with your Flights class.
Can you post flights.h?
#ifndef flights
#define flights
#include<iostream>
#include<string>
#include<vector>
using namespace std;
struct flightinfo
{
string number;
int seats;
};
class Flights {
public:
Flights(ifstream& f);
void NewFlight(string n, int s);
bool checkFlight(const string& m) const;
bool checkAvailable(const string& o) const;
void addPassenger(const string& p);
void removePassenger(const string& q);
private:
vector<flightinfo> info;
void ReadFile(ifstream& f);
void addtoRecord(string, int);
};
#endif
Nevermind, I somehow fixed it. Thanks anyways. ^^