-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
38 lines (32 loc) · 696 Bytes
/
main.cpp
File metadata and controls
38 lines (32 loc) · 696 Bytes
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
#include "stdafx.h"
#include <iostream>
#include <string>
#include "hash.h"
using namespace std;
int main(){
hashT hashy;
string name = "";
hashy.AddItem("Akanksha", "lassi");
hashy.AddItem("Anketa", "chach");
hashy.AddItem("harsh", "milk");
hashy.AddItem("vijaya", "tea");
hashy.AddItem("sangita", "coffee");
hashy.AddItem("jyoti", "water");
hashy.AddItem("poonam", "cola");
hashy.AddItem("aditya", "beer");
hashy.AddItem("arjun", "soup");
hashy.AddItem("uma", "whiskey");
hashy.PrintTable();
//hashy.PrintItemsInIndex(8);
while (name != "exit")
{
cout<<"Remove ";
cin>>name;
if(name != "exit")
{
hashy.RemoveItem(name);
}
}
hashy.PrintTable();
getchar();
}