first commit
This commit is contained in:
32
Lab6/mapfake.h
Normal file
32
Lab6/mapfake.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef __MAP_H
|
||||
|
||||
#define __MAP_H
|
||||
|
||||
|
||||
|
||||
#include <iostream.h>
|
||||
|
||||
#include "List.h"
|
||||
|
||||
|
||||
|
||||
template <class KeyType, class DataType>
|
||||
|
||||
class Mapfake{
|
||||
|
||||
private:
|
||||
|
||||
typedef class Tuple{
|
||||
|
||||
KeyType key;
|
||||
|
||||
DataType data;
|
||||
|
||||
public:
|
||||
|
||||
Tuple(KeyType _key, DataType _data){key = _key; data = _data;}
|
||||
|
||||
|
||||
|
||||
KeyType getKey(){return key;}
|
||||
|
||||
Reference in New Issue
Block a user