使用boost::asio实现客户端的异步通讯访问pop3服务器。 #include?<iostream>
#include?<boost/asio.hpp>
#include?<boost/bind.hpp>
using?namespace?std;
using?boost::asio::ip::tcp;
#define?MAIL_SE...
分类:
其他好文 时间:
2015-06-22 06:31:59
阅读次数:
124
#include
using namespace std;
#define MAXSIZE 21
typedef int SqList[MAXSIZE];
#define ElementType int
void Swap(int &a, int &b)
{
a = a^b;
b = a^b;
a = a^b;
}
///////////...
分类:
编程语言 时间:
2015-06-22 01:14:46
阅读次数:
162
//署名:冯兵//本人第一次写博客,如有何不对的地方,请指出,还望请多多见谅,或还有更简单的方法,望大神指教,谢谢!//表单@using (Html.BeginForm("StockItemsIns", "StockItems", FormMethod.Post, new { id = "searc...
分类:
数据库 时间:
2015-06-22 01:07:19
阅读次数:
291
一、vector容器的自增长 首先,我们知道vector容器是由数组做出来的;它具备了数组的优缺点.数组的优点: 操作数据,读取速度很快,因为有下标;数组的缺点: 分配之后不能在改变大小; 1 #include 2 #include 3 4 using namespace std; 5 ...
分类:
其他好文 时间:
2015-06-21 23:41:16
阅读次数:
146
推方块小游戏 很有意思的小游戏 mooc 有代码 我还是自己打了一遍 熟悉下C# 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; ...
先看一下效果首先准备材料:1.ucenter for net :https://github.com/dozer47528/UCenter-API-For-DotNet or http://pan.baidu.com/s/1i3znQV72.uc.ashx 下面是具体代码using DS.Web.U...
分类:
Web程序 时间:
2015-06-21 19:45:41
阅读次数:
190
这题是一个模拟p2p的网络的一个题目。题意比较繁琐,只要看懂课,细心一点就很好AC了。直接上代码了,存模拟。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
const int inf = 0x3fffffff;
cons...
分类:
其他好文 时间:
2015-06-21 18:39:48
阅读次数:
161
题意:求一n!的16进制表示的0的个数。
高精度模拟,或者直接java即可。这里可以给一个高精度模板。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
const in...
分类:
其他好文 时间:
2015-06-21 18:39:45
阅读次数:
104
表达式求值。 手动模拟吧。可以用站维护,这里我没用到栈来写。注意不能gets() 输入有换行。 还要用到高精度,套一个模板。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace st...
分类:
其他好文 时间:
2015-06-21 18:39:42
阅读次数:
157
/*
*Copyright (c)2014,烟台大学计算机与控制工程学院
*All rights reserved.
*文件名称:d.cpp
*作 者:张旺华
*完成日期:2015年6月3日
*版 本 号:v1.0
*/
#include
#include
#include
using namespace std;
int main( )
{
int a;
ofstre...
分类:
其他好文 时间:
2015-06-21 18:38:42
阅读次数:
178