Hey so I'm having trouble making this work. I do not know how to fix this code and I need some help!
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
class Rectangle {
int width, height;
public:
void set_values (int,int);
int area() {
int answer;
return answer;
}
Rectangle(int w, int h) { // parameterized constructor
}
};
void Rectangle::set_values (int x, int y) {
}
int main () {
Rectangle rect1(5,6);
cout << "area: " << rect1.area() << endl;
Rectangle rect2;
rect2.set_values (3,4);
cout << "area: " << rect2.area() << endl;
return 0;
}