现在的位置: 首页 > 综合 > 正文

程序找错

2013年10月03日 ⁄ 综合 ⁄ 共 324字 ⁄ 字号 评论关闭

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

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

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

抱歉!评论已关闭.