Files
912-notes/thu_dsa/chp1/max2/max2.h
2019-05-08 09:49:12 +08:00

12 lines
287 B
C++

#include <iostream>
#define MAX(X,Y) ((X)>(Y)?(X):(Y))
#define MIN(X,Y) ((X)>(Y)?(Y):(X))
using namespace std;
void max2It(int* A, int lo, int hi, int &one, int &two);
void max2Re(int* A, int lo, int hi, int &one, int &two);
void max2It2(int* A, int lo, int hi, int &one, int &two);