Page replacement algorithm in C++

Quote from Wikipedia: In a computer operating system that uses paging for virtual memory management, page replacement algorithms decide...