程序找错

 #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;
}

上边是我在课上练习的时候敲的一段小程序,有一处错误,你能找出来吗?

如果你找出来了,那么你是细心的人,如果没找出来,嘿嘿……你和我一样,要注意了,程序员最重要的就是细心!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章