Lab 1 Attached Files Timerh 613 B Intsearchsorttemplateh 402 B Lab 1templatecpp 2393 Kb Do Q37233092

Lab .1

Attached Files:

  • File Timer.h(613 B)
  • FileIntSearchSort_template.h (402 B)
  • File lab1_template.cpp (2.393 KB)

Download lab 1_template.cpp and save it

Download Timer.h and move the file to the same folder as the CPPfile.

#include “Timer.h”start() //will start a stopwatch timerstop() //will stop the stopwatch timerexecutionTime() //returns a double value for duration (in milliseconds)

Create txt file contains all numbers from 1 – 100,000 in randomorder and name it numbers100k.txt and move

the file to the same folder as the CPP file.

Download IntSearchSort_template.h and save it as IntSearchSort.hin the same folder as the CPP file.

Modify your IntSearchSort.h to include the function definitionsfor linear

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.