using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
其他好文 时间:
2014-07-22 22:51:14
阅读次数:
191
在学习设置数据收发缓冲区时,做以下实验void main (){ LPBYTE m_data=new BYTE[16]; memcpy(m_data,"example",sizeof(m_data)); string str=" "; str[0]=m_data[...
分类:
其他好文 时间:
2014-07-22 22:50:56
阅读次数:
189
Model:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data;namespace { ...
分类:
其他好文 时间:
2014-07-20 10:08:00
阅读次数:
406
定制CentOS5.5精简的自动安装版1、安装制作发行版所需的基本软件包yum-yinstallcreaterepomkisofs2、生成安装系统所需的rpm文件列表awk‘/Installing/{print$2}‘install.log|sed‘s/^[0-9]*://g‘>/root/CentOS.list3、创建定制工作目录mkdir-p/mnt/cdrommkdir-p/data/OSmount/..
分类:
其他好文 时间:
2014-07-20 03:42:51
阅读次数:
382
Ubuntu安装keepalived(热备份)http://www.keepalived.org/software/keepalived-1.1.19.tar.gzMASTER服务器$sudoapt-getinstalllibpopt-dev$sudoapt-getinstalldaemon$sudotarzxfvkeepalived-1.1.19.tar.gz$cdkeepalived-1.1.19$./configure--prefix=/usr/local/keepalived$ma..
分类:
其他好文 时间:
2014-07-20 03:18:37
阅读次数:
177
好久没写SQL语句了,复习一下。
DDL数据定义语言...
分类:
数据库 时间:
2014-07-20 00:13:43
阅读次数:
293
假设有一个如下的MyClass类:
class MyClass
{
public:
//构造函数
//拷贝构造函数
MyClass(const MyClass& that)
: int_data_(that.int_data_),
dbl_data_(that.dbl_data_),
str_data_(that.str_data_)
{
}
//赋值操作符
M...
分类:
其他好文 时间:
2014-07-19 23:46:08
阅读次数:
350
/** \brief hdu 1009--greedy
*
* \param date 2014/7/18
* \param state AC
* \return
*
*/
#include
#include
#include
#include
using namespace std;
const int MAXN=1001;
struct Data
{
int...
分类:
其他好文 时间:
2014-07-19 23:41:49
阅读次数:
237
1.一个以递增方式排列的链表,去掉链表中的冗余值。
思路一:设有两个指针p和q,使p不动,q依次往后循环直到p->data不等于q->data,再将中间的冗余数据删除。
思路二:设有两个指针p和q,使p在前,q在后,只要找到一个冗余就删除一个,依次往后删除。
输入的链表:1 3 3 3 3 6 6 8 9 10
删除后的链表:1 3 6 8 9 10
比较两种思路,思路二的想法相比于思路...
分类:
其他好文 时间:
2014-07-19 23:26:29
阅读次数:
318
对于tr1::shared_ptr在安装vs同时会自带安装,但是版本较低的不存在。而boost作为tr1的实现品,包含
“Algorithms
Broken Compiler Workarounds
Concurrent Programming
Containers
Correctness and Testing
Data Structures
Domain Specific
Fu...
分类:
其他好文 时间:
2014-07-19 23:18:19
阅读次数:
371