PHPMailer配置清单如下:require_once
‘class.phpmailer.php‘;$receiver = ”;$mail =newPHPMailer(
);$mail->IsSMTP();$mail->IsHTML( true );$mail->CharSet= “GB2312″...
分类:
Web程序 时间:
2014-05-26 21:52:38
阅读次数:
404
MainRecv.cpp#include #include #include #pragma
comment(lib,"ws2_32.lib")#define RECV_IP "127.0.0.1"#define RECV_PORT
8899#define LEN_RECV_BUF 2048int ...
分类:
其他好文 时间:
2014-05-26 12:07:41
阅读次数:
276
一个小题目,模拟stof()功能,网上答案很多,但是感觉都不够简洁。主要是整数部分和小数部分实现由一定区别,这里尝试不区分整数和小数部分,先忽略小数点,然后最后在做一个除操作。比如输入:100.123,先转换为100123,然后除1000#include
#include #include #inc...
分类:
其他好文 时间:
2014-05-22 14:45:04
阅读次数:
242
Find a number which appears once in an array with
all the other numbers appear twice.
分类:
其他好文 时间:
2014-05-22 01:08:40
阅读次数:
278
你能够依据调用次序来mock同一个办法:EasyMock.expect(request.getParameter("userName")).andReturn("trilogy").once();EasyMock.expect(request.getParameter("userName")).an...
分类:
其他好文 时间:
2014-05-21 22:17:46
阅读次数:
248
#include #include const int GRID_WIDTH = 1024;const
int GRID_HEIGHT = 800;#pragma comment(lib, "osgd.lib")#pragma comment(lib,
"osgViewerd.lib")#pragm...
分类:
其他好文 时间:
2014-05-21 20:31:39
阅读次数:
555
#include "stdafx.h"#include #include #pragma
comment(lib,"ws2_32.lib")using namespace std;int main(int argc, char* argv[]){
WSADATA wsaData; int...
【题目】
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Each number in C may only be used once in the combination.
Note:
All numbers (including target) will be ...
分类:
其他好文 时间:
2014-05-21 15:55:25
阅读次数:
259
利用Union Find的方法查找图中是否有环。
在于构建一个图数据结构,和一般图的数据结构不同的是这个图是记录了边的图,并在查找过程中不断把边连接起来,形成一个回路。
原文地址:
http://www.geeksforgeeks.org/union-find/
#pragma once
#include
#include
#include
#include
class Un...
分类:
其他好文 时间:
2014-05-21 14:12:15
阅读次数:
287
#pragma once
#include "ThreadLock.h"
#include
#include
#include
#include
#include
#include
#include
#include
class QuoteLog
{
public:
static QuoteLog* getInstance();
void log...
分类:
其他好文 时间:
2014-05-21 10:03:49
阅读次数:
157