pa help po na mapalabas yung correct output and mafix yung code :
fix this code you should print the correct output using this code :
include<iostream.h>
class maine
{
int x;
float y;
protected;
long x1;
public:
maine()
{ };
maine(int s, t=2.5)
{ x=s;
y=t;
}
getdata()
{
cin>>x>>y>>x1;
}
void displaydata()
{
cout<<x<<y<<x1;
} };
void main()
{ clrscr();
maine m1(20,2.4);
maine m2(1);
class maine m3;
}
fix this code you should print the correct output using this code :
include<iostream.h>
class maine
{
int x;
float y;
protected;
long x1;
public:
maine()
{ };
maine(int s, t=2.5)
{ x=s;
y=t;
}
getdata()
{
cin>>x>>y>>x1;
}
void displaydata()
{
cout<<x<<y<<x1;
} };
void main()
{ clrscr();
maine m1(20,2.4);
maine m2(1);
class maine m3;
}