-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComp.h
More file actions
26 lines (20 loc) · 640 Bytes
/
Copy pathComp.h
File metadata and controls
26 lines (20 loc) · 640 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
#ifndef COMP_H
#define COMP_H
#include "BaseClass.h"
#include <iostream>
#include <vector>
class Comp : public BaseClass {
public:
Comp();
void createAccount(std::string id, int count) override;
std::vector<int> getTopK(int k) override;
int getBalance(std::string id) override;
void addTransaction(std::string id, int count) override;
bool doesExist(std::string id) override;
bool deleteAccount(std::string id) override;
int databaseSize() override;
int hash(std::string id) override;
private:
// Other data members and functions specific to Your implementation
};
#endif // COMP_H