I have read the c++ language tutorial up to the end of classes (part 2) and have zero c/c++ programming experience prior. I have understood the tutorial up to this point, but would like to have someone explain this following example program which is found on page 93 (last part of classes part one). Before moving onto the next section, I would like some clarification on the flow characteristics of C++, maybe step by step on which the program is read by the compiler(paying extra attention to pointers). I have PLC programming experience using RSlogix, which I believe could throw me off track. Any help would be greatly appreciated.
// pointer to classes example
#include <iostream>
using namespace std;
class CRectangle {
int width, height;
public:
void set_values (int, int);
int area (void) {return (width * height);}
};
void CRectangle::set_values (int a, int b) {
width = a;
height = b;
}