#include
using namespace std;
class room{
public:
int l,b,h;
room()
{
cout<<“Wow!\n”;
}
room(int l,int b,int h)
{
cout<<l<<" “<<h<<” "<<b<<endl;
}
void input();
void print(){
cout<<“length”<<l;
cout<<“breadth”<<b;
cout<<“height”<<h;
}
};
void room::input()
{
cin>>l>>b>>h;
}
int main()
{
room r1;
room r2(6,7,9);
r2.print();
}
here the output shows
Wow!
6 9 7
length-2breadth7208680height1997893613
Why the last output is this?
Sir, please give me answer as soon as possible