#include "max2.h" #include #include #include #include #include #include #define LEN 10001 #define NUMOFLOOP 1000 using namespace std; void max2ItTest(); void max2It2Test(); void max2ReTest(); int A[LEN]; int main(){ ifstream in("testData.txt"); char oneline[256]; string str; int ix = 0; while(!in.eof()){ in.getline(oneline, 100); str = string(oneline); if(str.size()) A[ix++] = stoi(str); } max2ItTest(); max2It2Test(); max2ReTest(); } void max2ReTest(){ int one, two; clock_t begin, end; begin = clock(); for(int ix = 0; ix