It's meant to take in two values from the user (the sides of a rectangle), declared in main() by i and j. It then sends those values into a function in the class CRectangle (the function is get_values( int , int ) ) which subsequently assigns them to values within the class, x and y. Skipping back to main(), the function area() is declared, which multiplies x by y and returns the value to cout.
Here's the code:
Code:
//Rectangle class
#include <iostream>
using namespace std;
class CRectangle
{
private:
int x , y;
public:
void get_values( int , int );
int area() { return ( x * y ); }
};
void CRectangle::get_values( int a , int b )
{
x = a;
y = b;
}
int main()
{
int i , j;
CRectangle rectangle;
cout << "Enter the lengths of the two sides of a rectangle: ";
cin >> i , j;
rectangle.get_values( i , j );
cout << "The rectangle's area is " << rectangle.area();
cin.get();
return 0;
}

I'm glad I found out about that before I started messing with some other random things.