求C++编程帮忙解决error
#include<iostream.h>#include<string.h>
class Customer;
{
friend void displayAsFriend(Customer);
private:
int custNum;
double balanceDue;
public:
Customer(int=0, double=0.0);
void displayCustomer();
};
Customer :: Customer(int num,double balance)
{
custNum=0;
balanceDue=0.0;
}
void Customer :: displayCustomer()
{
cout<<"In the member function"<<endl;
cout<<"Customer #"<<custNum<<" has balance of RM"<<cust.custNum<<endl;
}
void Customer :: displayAsFriend(Customer cust)
{
cout<<" In the friend function: "<<endl;
cout<<" Customer #"<<cust.custNum<<" has a balance of RM "<<cust.balanceDue<<endl;
}
int main()
{
Customer.onePatron(3815,259.25);
Customer.display.Customer();
displayAsFriend(onePatron);
}