Help me to change the input function to Pointers to the input, a little bit more simple, I am a c + + beginners
#include
Using namespace STD.
Float input (float s);
A, float findMax (float float b, float c);
The main ()
{
Float a, b, c, Max.
Cout<& lt;" Enter data into three "& lt;
B=input (b);
C=input (c);
Max=findMax (a, b, c);
Cout<& lt;" The maximum value of the three Numbers is: "& lt;
Float input (float s)
{
Cin> s;
return s;
}
A, float findMax (float float b, float c)
{
Float Max;
Max=a;
If (b> Max)
Max=b;
If (c> Max)
Max=c;
The return of Max;
}
CodePudding user response:
Not sure you meanFloat input (float & amp; S)
{
The scanf (" % f \ n ", & amp; S)
return s;
}