我有以下 c++ 代码,并且我在其中遇到构建错误。我无法找出错误,请任何人帮助。这是代码
#include<stdlib.h>
#include <iostream.h>
using namespace std;
class PropertyPortal;
class PropertyType;
class Commercial;
class Residential;
void main()
class PropertyPortal
{
private:
int NoOfUsers;
int UAN;
char* Name;
public:
void setNoOfUsers(int no);
void setUAN(int u);
void setName(int n);
int getNoOfUsers();
int getUAN();
char getName();
int getPropertyInfo();
//constructors of the class
PropertyPortal();
PropertyPortal(int, int, char);
//destructor of the class
~PropertyPortal ();
void setNoOfUsers(int no)
{
NoOfUsers>=1;
}
void setUAN (int u);
{
NoOfUsers>=0;
UAN>=1;
Name=Null;
}
PropertyPortal (int no, int u, char* n)
{
NoOfUsers>=no;
UAN=u
Name=VU-Real-Estate;
}
PropertyPortal (int no, int u, char* n)
{
NoOfUsers>=no;
UAN=u
Name=n;
}
void setNoOfUsers(int no)
void setUAN(int u)
void setName(char n)
int getNoOfUsers()
int getUAN()
char getName()
int getPropertyInfo();
class PropertyType
{
private:
char* City
public:
void setCity(char c);
char getCity(char c);
void getPropertyType();
PropertyType();
PropertyType(char);
~PropertyType();
PropertyType();
{
City=Null
}
PropertyType(char* cCity)
{
City=cCity
}
};
class Commercial:PropertyType
{
private:
int PropertyValue
public:
void setPropertyValue();
int getPropertyValue();
void getPlots();
Commercial();
Commercial(char);
~Commercial();
};
class Residential:PropertyType
private:
int PropertyValue;
public:
void setPropertyValue();
int getPropertyValue();
int getPropertyCategory();
};
void main ()
{
cout<<"This is just a prototype of all classes";
cout<<endl;
system("PAUSE");
}
我在网上遇到错误2,32:2,10,103
请帮助我找出问题所在以及代码发生了什么。
更新