I'm new to c++ and am getting a syntax error: missing ; before }
Any help would be greatly appreciated!
This is the code - where am I missing the ; ?
#ifndef H_addressType
#define H_addressType
#include<string>
#include<fstream>
using namespace std;
class addressType
{
public:
void print(ostream& fout) const;
//function to output the address
void setNumberOfAddresses(int validNumber);
//function to get number of addresses
//postcondition: number as a integer
void setAddress(string theStreet,string theCity,string theState,string theZip);
//function to set the address
//postcondition: address displayed as a string
string getStreet() const;
string getCity() const;
string getState() const;
string getZip() const;
addressType(string theStreet, string theCity, string theState, string theZip);
//contructor to set the string, city, state, zip
//postcondition: pull information from a file
addressType();
//default constructor
private:
string street;
string city;
string state;
string zip;
#endif
};