Home > Back-end >  Help leaders a new topic
Help leaders a new topic

Time:10-24


Output of Tom, dick and harry deposits respectively, the program automatically according to the input, from big to small order
1, completely random input order, deposit are all positive integer
2, it is prohibited to use if> <? Outside: array pointer, and data types and calculation of knowledge

CodePudding user response:

 # include 
using namespace std;
Int main ()
{
Int z, l;
cin> Z> l;
If (z> L)
coutThe else
coutreturn 0;

CodePudding user response:

Thanks for elder brother, the key subject is prohibited to use the if & gt; CodePudding user response:

The
reference 1 floor? Victor.?? Response:
 # include 
using namespace std;
Int main ()
{
Int z, l;
cin> Z> l;
If (z> L)
coutThe else
coutreturn 0;

Thanks for elder brother, you can use an operation to achieve?

CodePudding user response:

 # include 
using namespace std;
Bool t (int a, int b)
{
Return a> b;
}
Int main ()
{
Int a, [2].
cin> A [0] & gt;> A, [1].
Sort (a, a + 2, t);
cout}

CodePudding user response:

This can be?

CodePudding user response:

refer to fifth floor pan pan pan pan pan pan's reply:
this can?

It is also a solution, but the topic request cannot be used in an array, not to mention the custom header files, thank eldest brother the first

CodePudding user response:

STD: : sort

CodePudding user response:

The
reference 7 floor ggglivw response:
STD: : sort

Sort any problems

CodePudding user response:

Not if, you can use the
 for/switch/while 
, but they bring their own judgment
For:
 for (; A 
Switch:
 switch (aCase false:} 

While:
 while (a

CodePudding user response:

Then you can use three while
  • Related