Whenever i run the program, it works fine, except for a random number that pops up.
source:
Code:
#include <iostream> using namespace std; class CRectangle { public: int x, y; int area() { int a = x*y; cout << a << "\n"; } }; int main() { CRectangle