#include <iostream.h>
class Customer
{
public:
int age;
};
void mian()
{
Customer obj1,obj2;
cout<<"Enter the first customer's age:";
cin>>obj1.age;
obj2=obj1;
cout<<obj1.age<<" is the age of customer1"<<endl;
cout<<obj2.age <<" is the age of custmoer2"<<endl;
}
上边是我在课上练习的时候敲的一段小程序,有一处错误,你能找出来吗?
如果你找出来了,那么你是细心的人,如果没找出来,嘿嘿……你和我一样,要注意了,程序员最重要的就是细心!!!