-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
38 lines (32 loc) · 1.41 KB
/
main.cpp
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 "FunCache.h"
int main()
{
FunCache m_cache(4);
m_cache.Load(0, 0x111111);std::cout << std::endl;
m_cache.Load(0, 0x222111);std::cout << std::endl;
m_cache.Load(0, 0x333111);std::cout << std::endl;
m_cache.Load(0, 0x444111);std::cout << std::endl;
m_cache.Load(0, 0x555111);std::cout << std::endl;
m_cache.Load(0, 0x666111);std::cout << std::endl;
m_cache.Load(0, 0x111111);std::cout << std::endl;
m_cache.Load(0, 0x777111);std::cout << std::endl;
m_cache.Load(0, 0x888111);std::cout << std::endl;
m_cache.Load(0, 0x999111);std::cout << std::endl;
m_cache.Load(0, 0x1999111);std::cout << std::endl;
m_cache.Load(0, 0x2999111);std::cout << std::endl;
std::cout << std::endl;
m_cache.Store(0, 0x111111);std::cout << std::endl;
m_cache.Store(0, 0x222111);std::cout << std::endl;
m_cache.Store(0, 0x333111);std::cout << std::endl;
m_cache.Store(0, 0x444111);std::cout << std::endl;
m_cache.Store(0, 0x555111);std::cout << std::endl;
m_cache.Store(0, 0x666111);std::cout << std::endl;
m_cache.Store(0, 0x111111);std::cout << std::endl;
m_cache.Store(0, 0x777111);std::cout << std::endl;
m_cache.Store(0, 0x888111);std::cout << std::endl;
m_cache.Store(0, 0x999111);std::cout << std::endl;
m_cache.Store(0, 0x1999111);std::cout << std::endl;
m_cache.Store(0, 0x2999111);std::cout << std::endl;
m_cache.Statistics();
return 0;
}