boost::property_tree读取解析ini文件[cpp]view plaincopy#include"stdafx.h"#include#include#includeintmain(){boost::property_tree::ptreept;boost::property_tree...
分类:
其他好文 时间:
2014-08-12 00:32:43
阅读次数:
293
boost::property_tree读取解析.xml文件1)read_xml 支持中文路径 boost::property_tree::wptree wpt; std::locale::global(std::locale("")); boost::property_tree::xml_pars...
分类:
其他好文 时间:
2014-08-12 00:32:33
阅读次数:
400
SSIS 中处理文件,一般在描述输出平面文件格式的时候通常会出现以下几种选项 -Delimited - 默认输出列使用逗号分隔,也可以选择其它的诸如 | ,或者 Tab 等。Fixed Width - 列定长输出,固定长度,但不换行。Fixed Width with row delimiters -...
分类:
其他好文 时间:
2014-08-12 00:20:53
阅读次数:
336
property_tree是专为配置文件而写,支持xml,ini和json格式文件ini比较简单,适合简单的配置,通常可能需要保存数组,这时xml是个不错的选择。使用property_tree也很简单,boost自带的帮助中有个5分钟指南http://www.boost.org/doc/libs/1...
分类:
其他好文 时间:
2014-08-12 00:20:43
阅读次数:
264
boost 官网http://www.boost.org/下载页面http://sourceforge.net/projects/boost/files/boost/1.53.0/我下载的是boost_1_53_0.tar.gz使用系统 ubuntu 12.10一、解压[plain]view pla...
分类:
编程语言 时间:
2014-08-12 00:18:23
阅读次数:
1607
8086 CPU 中寄存器总共为 14 个,且均为 16 位 。即AX,BX,CX,DX,SP,BP,SI,DI,IP,FLAG,CS,DS,SS,ES共 14 个。而这 14 个寄存器按照一定方式又分为了通用寄存器,控制寄存器和段寄存器。通用寄存器:AX,BX,CX,DX 称作为数据寄存器:AX ...
分类:
其他好文 时间:
2014-08-12 00:15:33
阅读次数:
177
先上题目:Binary Search Heap ConstructionTime Limit:5 Seconds Memory Limit:32768 KBRead the statement of problem G for the definitions concerning trees. In...
分类:
其他好文 时间:
2014-08-11 23:57:23
阅读次数:
895
UVA 10228 - Star not a Tree?
题目链接
题意:给定一些点,费马点(到这些点距离和最短),输出距离和
思路:模拟退火去搞,初始温度1W步,降温系数设为0.83,然后每次找周围4个方向,做10次保证答案准确
代码:
#include
#include
#include
#include
#include
#include
using...
分类:
其他好文 时间:
2014-08-11 21:28:23
阅读次数:
415
Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the be...
分类:
其他好文 时间:
2014-08-11 21:13:02
阅读次数:
219
最近终于把事件机制弄明白了。和大家分享一下。下面是定义的事件:package{ import flash.events.Event; public class NBEEvent extends Event { /** * 对 */ public static const RIGHT:...
分类:
其他好文 时间:
2014-08-11 20:37:42
阅读次数:
191