1.binary heap的实现
BinaryHeap.h
#ifndef BINARYHEAP_H
#define BINARYHEAP_H
class BinaryHeap
{
public:
BinaryHeap(int N);
bool isEmpty();
void exchange(int i,int j);
...
分类:
其他好文 时间:
2014-10-08 16:22:45
阅读次数:
260
1 protected void writeElementToFile(Element valrespEle) {2 3 try {4 TransformerFactory transformerFactory = Transform...
分类:
其他好文 时间:
2014-10-08 15:45:05
阅读次数:
174
思路:利用排列思想,进行递归;#include "iostream"using namespace std;char b[10];void pick_one(char a[],int num[],int n){ if(n==6){ b[n]='\0'; co...
分类:
其他好文 时间:
2014-10-08 15:25:55
阅读次数:
212
#pragma mark -- UIScrollViewDelegate 代理
#pragma mark 去掉UItableview headerview黏性(sticky)
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
CGFloat sectionHeaderHeight = 40;
if (s...
分类:
移动开发 时间:
2014-10-08 15:07:05
阅读次数:
473
添加一个panel先private void panel7_Paint(object sender, PaintEventArgs e) { //LinearGradientBrush brush = new LinearGradientBrush(e.ClipR...
分类:
其他好文 时间:
2014-10-08 14:57:05
阅读次数:
538
#define LOCAL#include#includeusing namespace std;typedef int ElemType;void fun1(ElemType *x){ cout>a; cout<<(*&a)<<endl; fun1(&a); ...
分类:
编程语言 时间:
2014-10-08 14:42:55
阅读次数:
221
private string url;
// Use this for initialization
void Start () {
HttpWebRequest myHttpWebRequest = (HttpWebRequest)HttpWebRequest.Create("这里填写Url");
myHttpWebRequest.AllowAutoRed...
分类:
其他好文 时间:
2014-10-08 13:59:55
阅读次数:
143
public static void fileChannelCopy(File s, File t) { FileInputStream fi = null; FileOutputStream fo = null; FileChannel in = null; FileCha...
分类:
编程语言 时间:
2014-10-08 13:58:55
阅读次数:
181
建造者(Builder)模式是创建型模式,创建了一个对外隐藏创建过程的产品,使用组合的方式,由指挥者(Director)来决定建造的流程
public interface Builder {
void buildPartA();
void buildPartB();
void buildPartC();
}
public class BuilderImpl implements...
分类:
编程语言 时间:
2014-10-08 13:45:25
阅读次数:
224
public class BaseSpoon implements Cloneable {//spoon 匙, 调羹
String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
protec...
分类:
编程语言 时间:
2014-10-08 13:42:15
阅读次数:
175