1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
#include "stdafx.h"
#include <iostream>
using namespace std;
int GetInteger();
int Max(int, int, int, int);
int Min();
int Middle();
void Print(int, int, int, int);
int main()
{
int n1, n2, n3 = 0;
int max, min, middle;
n1 = GetInteger();
n2 = GetInteger();
n3 = GetInteger();
return 0;
}
int Max(int p1, int p2, int p3, int max) {
int max;
max = p1;
if (p2 > p2)
max = p2;
if (p3 > max)
max = p3;
return max;
}// Function Max()
// ===================
void Print(int min, int middle, int max) {
cout << endl;
cout << "Min Value ==> " << min << endl;
cout << "Middle Value ==> " << middle << endl;
cout << "Max Value ==> " << max << endl;
}// Function Print()
// =====================
int GetInteger() {
int intValue;
cout << "Enter an three integers ==> ";
cin >> intValue;
return intValue;
}// GetInteger()
// =================
|