Course Solutions Uncategorized (Solved) : Hi C Code Program Already Written Need Implement Little Things Follow Requeriments Code Al Q29378715 . . . .

(Solved) : Hi C Code Program Already Written Need Implement Little Things Follow Requeriments Code Al Q29378715 . . . .

 

Hi, I have some of the C++ code of my program already writtenbut I need to implement some little things to follow therequeriments.

My code already written:

#include <iostream>

#include <fstream>

#include <time.h>

#include <windows.h>

#include <list>

using namespace std;

const int Position_Table_Hash = 1000;

int FunctionHash(int iData)

{

return iData % 1000;

}

bool Find_Mat(list<int> List_Hash[Position_Table_Hash],int iData)

{

list<int>::iterator Beginnning =List_Hash[FunctionHash(iData)].begin();

list<int>::iterator End =List_Hash[FunctionHash(iData)].end();

while (Beginnning != End)

{

if (*Beginnning == iData)

return true;

++Beginnning;

}

return false;

}

int main()

{

int Search_ID, iData;

list<int> List_Hash[Position_Table_Hash];

ifstream File_Entry;

ofstream File_Exit;

cout << “What ID are you looking for?” << endl;

cin >> Search_ID;

clock_t startTime = clock();

File_Entry.open(“Search.txt”);

while (!File_Entry.eof())

{

File_Entry >> iData;

List_Hash[FunctionHash(iData)].push_back(iData);

}

Find_Mat(List_Hash, Search_ID) ? cout << “It is astudent.” << endl : cout << “It is not an student.”<< endl;

File_Exit.open(“Execution Time.txt”);

File_Exit <<

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Design Principles Java Programming 1 System Overview University Department Needs Set Inter Q35570869 . . . .(Solved) : Design Principles Java Programming 1 System Overview University Department Needs Set Inter Q35570869 . . . .

<p><strong>The Design Principles (Java Programming)</strong></p><p><strong>1. System overview</strong></p><p>A University Department needs a set of interfaces and classes tomanage student data.</p><p>The Department has three types of students - undergraduates(UG), postgraduate taught (PGT)