class Building{
private:
int floor;
public:
Building(int s) { floor = s;}
};
int Main(){
Building twin, star;
Building BlueHouse(5), JangMi(14);
}
I made this code, and when I build the code 'error C2512: 'Building' : no appropriate default constructor available' comes up. It's been only a few weeks since I'v started learning c++ , and I'm having quite a hard time ;< Help me out, c++ masters!