Home > Back-end >  New small white, help you a great god, c c problem
New small white, help you a great god, c c problem

Time:09-19

Have the right version of c + +, need c, himself not to turn, strives for the great god help me, thanks!
# include
Int main ()
{
Char Max char x, char y, char (z);
Char x, y, z, a;
Printf (" input three characters: ");
The scanf (" % d % d % d ", & amp; X, & amp; Y, & amp; Z);
A=Max (x, y, z);
Printf (" maximum: % d \ n ", a);
}
Char Max char x, char y, char (z)
{
Char Max.
Max=x;
If (y> Max)
Max=y;
Else if (z> Max)
Max=z;
return 0;
}

CodePudding user response:

The scanf (" % % % c c c ", & amp; A, & amp; B, & amp; c)

CodePudding user response:

The
reference 1/f, the truth is more important than right or wrong response:
the scanf (" % % % c c c ", & amp; A, & amp; B, & amp; C)

Required by subject, however, have to use the x, y, z

Write a program that contains a child function, function for the maximum value of the three characters,
A function requirements:
Form of char Max char x, char y, char (z);
Run the example results:

CodePudding user response:

The return of Max not return zero

CodePudding user response:

Printf (" input three characters: ");
The scanf (" % d % d % d ", & amp; X, & amp; Y, & amp; Z);

Input characters in
The scanf (" % % % c c c ", & amp; X, & amp; Y, & amp; Z);
% d are integers

CodePudding user response:

The
reference 4 floor CHXCHXKKK reply:
printf (" input three characters: ");
The scanf (" % d % d % d ", & amp; X, & amp; Y, & amp; Z);

Input characters in
The scanf (" % % % c c c ", & amp; X, & amp; Y, & amp; Z);
% d is an integer

Oh oh oh, ok, thank you for your great god

CodePudding user response:

reference 3 floor truth is right or wrong response:
return Max not return 0

Ok, I will change, thank you for your great god
  • Related