1 void splice( iterator pos, list &lst ); 2 void splice( iterator pos, list &lst, iterator del ); 3 void splice( iterator pos, list &lst, iterator ...
分类:
其他好文 时间:
2015-05-29 23:00:36
阅读次数:
626
在开发POS应用过程中,有一个这样的需求: POS机大都拥有一个主屏一个副屏,主屏用于业务操作,副屏用于向客户展示实时交易数据。这样就有了对窗体显示在哪个窗体有了特定的要求。但是作为一个比较懒惰的程序员,我重来不愿意为这样的事情去做第二次,所以实现一个Window的扩展来...
int pos = Convert.ToInt32(dw1.Describe(colname + ".y"));pos = pos - 40;dw1.Modify("DataWindow.VerticalScrollPosition='"+pos.ToString()+"'");
Time Limit: 1000MSMemory Limit: 30000KTotal Submissions: 5158Accepted: 2844DescriptionThe ICPC committee would like to have its meeting as soon as pos...
分类:
其他好文 时间:
2015-05-28 12:27:17
阅读次数:
146
与之前的畅通工程类似,求最小生成树,只是要剔除不符合条件的边,还要判断是否是连通图(这个磨蹭了很长时间,只要判断加入集合的点数与题目给出的点数是否相等即可)。
#include
#include
#include
#include
using namespace std;
#define NUM 103
struct point
{
int x;
int y;
}pos[NUM]...
分类:
其他好文 时间:
2015-05-27 15:51:52
阅读次数:
137
10^9的大数组显然开不了。所以也算比较裸的离散化了。。。令pos[i].pp[j]表示从左到右第j个高度为i的树的位置 (pp是个vector,范围0..now-1) pos[i].num表示有几个高度为i的树 pos[i].now表示当前kill到第几个了(从0开始计数)离散化模板get: 1....
分类:
其他好文 时间:
2015-05-25 21:49:41
阅读次数:
125
分析:借助STL的multiset实现,很方便。
#include
#include
using namespace std;
class Node
{
public:
Node(int _h=0,int _pos=0):h(_h),pos(_pos) //注意_h一定要在_pos的前面,方便lower_bound的调用
{
}
int pos,h;
};
...
分类:
其他好文 时间:
2015-05-25 16:39:22
阅读次数:
105
函数实现数据的插入(头插&&尾插)、删除(头删&&尾删)、查找、按位置插入、按位置删除、顺序表求长、顺序表清除、顺序表摧毁、数据的逆置以及数据排序
main函数
#include"SeqList.h"//顺序表
void main()
{
SeqList mylist;
int select = 1;
int Item;
int pos;
while(sele...
分类:
编程语言 时间:
2015-05-25 13:06:19
阅读次数:
262
#include
#include
using namespace std;
#define _SIZE_ 10
typedef int Array[_SIZE_][_SIZE_];struct Pos
{
int x;
int y;
Pos(){}
Pos(int val1,int val2):x(val1),y(val2){}...
分类:
编程语言 时间:
2015-05-25 11:35:30
阅读次数:
148
原题链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1012线段树,单点更新。。 1 #include 2 #include 3 #include 4 #include 5 #define lc root r || pos = r) {20 .....
分类:
Web程序 时间:
2015-05-24 23:23:00
阅读次数:
159