C++编写的页面淘汰算法FIFO //FIFO #include<iomanip> #include<iostream> using namespace s…
C++编写的页面淘汰算法OPT //OPT /*算法思想:1.求出当前页架中那个是可以置换的,这就要求分析匹配当前页架中的页面和访问序列, 看访问序列中接下来页面中最近访问的位置是…
linux平台下mongodb c++连接池封装,线程安全 //函数返回0:成功 >0 出错 class cmongo{ public: //默认构造函数,默认连接数为1 c…
C++编写的16进制转换成10进制的代码 //16Radix number to Decimal //Programming by : Erfan Nasoori //Mail :…
C++在windows下获取本地主机ipv4地址和ipv6地址 #include <Winsock2.h> #include <stdio.h> #incl…
//Decimal to hexadecimal number //programming by : Erfan Nasoori //Date of send : 2009/1/1…
linux C++连接数据库postgreSql,在centos6.3,eclipse下调试成功 #include <stdio.h> #include <std…
C++编写的用于去除C、C++、Java等语言的注释的代码片段 // author :Rohith Gowda // - remove C/C++ comments // - as…
/* *@Abstract getHostInformation */ #include <stdio.h> #include <stdlib.h> #in…
#pragma once template<typename T,std::size_t nNum> class CMemPool { public: CMemPool…
Base64编码在邮件中最为常见,呵呵,因为我最近就是在做邮箱报警,SMTP验证就是Base64编码用户名和密码进行验证的,并且图片为附件也是要 转换成base64编码的数据,然后…
/* * Make sure project type is windows application */ #define _WIN32_WINNT 0x0500 #include…