home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Using Visual C++ 4 (Special Edition)
/
Using_Visual_C_4_Special_Edition_QUE_1996.iso
/
ch14
/
dblmid.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-18
|
243b
|
13 lines
#include <iostream.h>
double Middle(double a, double b, double c)
{
return (a <= b ? (b <= c ? b : Middle(a, c, b)) :
Middle(b, a, c));
}
void main()
{
cout << "Middle(3.34, 12.78, 5.67) is " << Middle(3.34, 12.78, 5.67);
}