1.HANDLE CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes, // SD SIZE_T dwStackSize, // initial stack size LPTHREAD_START_ROUTINE lpStartAddress...
分类:
编程语言 时间:
2014-06-22 23:48:03
阅读次数:
291
通常struts.xml都是如下形式: struts元素下有五个元素,只讲解package、constant、include;package: 在Struts2框架中是通过包来管理action、result、interceptor、interceptor-stack等配置信息的。属性:n...
分类:
其他好文 时间:
2014-06-22 23:29:51
阅读次数:
296
直接上Code,上Pic
#include
#include
using namespace std;
// STL在迭代的过程中,删除指定的元素
int main()
{
list listTest;
listTest.push_back(-1);
listTest.push_back(-1);
listTest.push_back(-1);
listTest.push_b...
分类:
其他好文 时间:
2014-06-22 22:31:07
阅读次数:
280
深度优先算法
问题
给定一个有向图,判断其顶点能否到达另外一个顶点。
解决办法
使用深度优先算法,和无向图中的是一样的。
代码
import java.util.Stack;
/**
* Created by caipeichao on 14-6-11.
*/
public class Digrap...
分类:
其他好文 时间:
2014-06-22 21:32:28
阅读次数:
250
先普及小知识:
STL 中栈的使用方法(stack)
基本操作:
push(x) 将x加入栈中,即入栈操作
pop() 出栈操作(删除栈顶),只是出栈,没有返回值
top() 返回第一个元素(栈顶元素)
size() 返回栈中的元素个数
empty() 当栈为空时,返回 true
STL 中队列的使用(queue)
基本操作:...
分类:
其他好文 时间:
2014-06-22 19:09:51
阅读次数:
169
再探迭代器
这里有插入迭代器,有流迭代器,反向迭代器,移动迭代器。
插入迭代器
这是一种迭代器适配器,接受一个容器,生成一个迭代器,实现向给定容器添加元素。
插入迭代器有三种类型,差异在于元素插入的位置
back_inserter创建一个使用push_back的迭代器。
front_inserter创建一个使用push_front的迭代器。
inserter创建一个使用i...
分类:
编程语言 时间:
2014-06-22 17:50:05
阅读次数:
253
XStream is a simple library to serialize objects to XML and back again.FeaturesEase of use.A high level facade is supplied that simplifies common use ...
分类:
Web程序 时间:
2014-06-22 13:31:51
阅读次数:
285
一介绍:
`.ARM.exidx` is the section containing information for unwinding the stack. If your C program has functions that print out a stack backtrace, the functions will likely depend on this section bei...
分类:
其他好文 时间:
2014-06-22 00:31:07
阅读次数:
618
题目来源:UVa 10828 Back to Kernighan-Ritchie
题意:从1开始 每次等概率从一个点到和他相邻的点 有向 走到不能走停止 求停止时每个点的期望
思路:写出方程消元 方程有唯一解 多解 无解的情况 有环 一直再环里无法停止算无穷大 从1不能到的点期望为0
#include
#include
#include
#include
#include
usin...
分类:
其他好文 时间:
2014-06-21 19:51:55
阅读次数:
338
1.顺序容器的类型顺序容器:vector 支持快速随机访问list 支持快速插入/删除deque 双端队列顺序容器适配器:stack 后进先出(LIFO)栈queue 先进先出(FIFO)队列priority_queue 有优先级管理的队列
分类:
其他好文 时间:
2014-06-21 15:31:26
阅读次数:
235