Home > Back-end >  The change the meng, bosses, thank you
The change the meng, bosses, thank you

Time:09-28

# include
# include
using namespace std;

The class difang
{
Public:
String name;
String addr.
Kun cxkun;
};
The class kun
{
Public:
String name;
Int zhuo_tili;
};
The class ren
{
Public:
String name;
Float tili;

Kun zhuo (difang & amp; Cs)
{
If (tili & gt;=cs. Cxkun. Zhuo_tili)
{
Tili=tili - cs. Cxkun. Zhuo_tili;
Cout & lt; <"Catch cxkun" & lt;
}
The else
{
Cout & lt; <"Physical strength is not enough to use, sneak slipped" & lt; Kun error_cxkun;
Error_cxkun. Zhuo_tili=1;

}
}
};

Int main ()
{
Kun cxkun;
Difang nanji.
Nanji. Cxkun. Zhuo_tili=100;
Ren erha;
Erha. Tili=50;
}

CodePudding user response:

Eldest brother, what are you going to do,,,, ah to chili oil?