Error: expected delcaration before '}' token (No bracket error)
There is only one set of brackets, so I know that I did not mess up the brackets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
#ifndef Included_NameModel_H
#define Included_NameModel_H
class Address
{
private:
int streetNumber;
int zipCode;
string streetName;
string cityName;
string stateName;
public:
Address(int,int,string,string,string);
void setStreetNumber(int);
void setZipCode(int);
void setStreetName(string);
void setCity(string);
void setState(string);
int getStreetNum();
int getZipCode();
string getStreetName();
string getCity();
string getState();
string toString();
#endif // Included_NameModel_H
};
|
Line 28 should be after line 29.
Thanks a ton. <3
Topic archived. No new replies allowed.