classes and objects

hi guys can tell me whats the op of this program and if there is some mistake please rectify it.

#include<iostream>
using namespace std;
class customer
{
public:
int age;

};
void main()
{
customer obj1,obj2;
cout<<"enter the first customer age \t";
cin>>obj1.age;
obj1=obj2;
cout<<obj1.age<<"is the age customer1 \t"<<endl;
cout<<obj2.age<<"is the age customer2 \t"<<endl;

}
gaurishankar wrote:
whats the op of this program
I do not understand.

Also, please make sure your code is [code]between code tags[/code] so it has line numbers and syntax highlighting.
Topic archived. No new replies allowed.