编译问题,求救!
#include <iostream>class Customer
{
private:
char mobileNo[12];
char name[25];
char dateOfBirth[10];
char billingAdd[50];
char city[25];
char phoneNo[13];
float amountOutstanding;
public:
void print()
{
cout<<endl<<"Mobile phone number:";
cout<<mobileNo<<endl;
cout<<"Name:";
cout<<name<<endl;
cout<<"date of birth:";
cout<<dateOfBirth<<endl;
cout<<"Billing address:";
cout<<billingAdd<<endl;
cout<<"City:";
cout<<city<<endl;
cout<<"residence phone number:";
cout<<phoenNo<<endl;
cout<<"amount due:";
cout<<amountOutstanding<<endl;
}
void get()
{
cout<<"Mobile phone number:";
cin>>mobileNO;
cout<<endl<<"Name:";
cin>>name;
cout<<endl<<"Date of Birth:";
cin>>dateOfbirth;
cout<<endl<<"Billing Address:";
cin>>billingAdd;
cout<<endl<<"city";
cin>>city;
cout<<endl<<"Residence phone number:";
cin>>phoneNO;
cout<<endl<<"Amount due:";
cin>>amountOutstanding;
}
};
int main()
{
Customer object;
object.get()
object.print()
return 0;
}
15 C:\Documents and Settings\ping\桌面\2ke.cpp `cout' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
请问是什么问题!