本文由 ImportNew - lomoxy 翻译自 javapapers。 目录 在这个Java GC系列教程中,让我们学习用于垃圾回收监视和分析的工具。然后,选用一种工具来监视一个Java示例程序的垃圾回收过程。如果你是一名初学者,你最好仔细阅读该系列教程。你可以从这里(垃圾回收介绍)开始。 J ...
分类:
编程语言 时间:
2016-05-13 12:20:42
阅读次数:
241
```#include using namespace std;const int N = 10;int data[] = {6,1,2,7,9,3,4,5,10,8};void binaryInsertSort(int* data,int n);void printArray(int* data,... ...
分类:
编程语言 时间:
2016-05-13 12:19:46
阅读次数:
148
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
分类:
编程语言 时间:
2016-05-13 12:16:09
阅读次数:
190
一个ARM汇编语言源程序的基本结构: AREA Init, CODE, READONLY ENTRY Start LDR R0, =0x3FF5000 LDR R1, 0xFF STR R1, [R0] LDR R0, =0x3FF5008 LDR R1, 0x01 STR R1, [R0] ... ...
分类:
编程语言 时间:
2016-05-13 12:13:13
阅读次数:
280
写java代码的时候,经常会遇到的情况就是输入输错了怎么办?大部分想的是用一个if判断,但是用if判断的话我们就无法让用户再次输入,因为if语句程序执行后就会直接退出程序。因此要想实现循环就要用while(),将输入语句放到里面实现循环。关于输入,一共有两种方式: <1>使用字符串输入 --> 使用 ...
分类:
编程语言 时间:
2016-05-13 12:13:16
阅读次数:
234
int array[5]={1,2,3,4,5}; void text(int &array) { cout<<sizeof(array)/sizeof(array[0]); } 5 void text(int array[]) { cout<<sizeof(array)/sizeof(array[ ...
分类:
编程语言 时间:
2016-05-13 12:10:45
阅读次数:
125
```#include using namespace std;const int N = 10;int data[] = {6,1,2,7,9,3,4,5,10,8};void quickSort(int *data,int low,int high);int partition(int *dat... ...
分类:
编程语言 时间:
2016-05-13 12:13:16
阅读次数:
287
传送门: 以前没接触过最大流问题,刚开始以为是用kruscal算法求最小生成树呢,并且题上也是显示最小树的专题: 反正还行吧,捣鼓了两天,总算稍微理解了一下,等会回来整理一下知识点。 ...
分类:
编程语言 时间:
2016-05-13 12:12:22
阅读次数:
200
```#include using namespace std;const int MAXSIZE = 1000;typedef int ELEMTYPE;const int N = 10;typedef struct { ELEMTYPE data[MAXSIZE]; int head; int ... ...
分类:
编程语言 时间:
2016-05-13 12:10:30
阅读次数:
136
递归函数 如果函数中包含了对其自身的调用,该函数就是递归函数! 先介绍一下斐波那契数列:斐波那契数列成为黄金分割数列,表现形式0、1、1、2、3、5、8、13、21、34、....... 可以看出前两个的数的和等于第三个数0 + 1 = 1,1 + 1 = 2 , 1 + 2 = 3 ...... ...
分类:
编程语言 时间:
2016-05-13 12:11:15
阅读次数:
214
一、多线程 二、协程(又称微线程,纤程) 协程,与线程的抢占式调度不同,它是协作式调度。协程在python中可以由generator来实现。 首先要对生成器和yield有一个扎实的理解. 调用一个普通的python函数,一般是从函数的第一行代码开始执行,结束于return语句、异常或者函数执行(也可 ...
分类:
编程语言 时间:
2016-05-13 12:03:35
阅读次数:
582
Win7 64下Visual C++ 6.0不兼容 安装VSE6.0: 1、运行setup.exe安装程序,会弹出如下的的 程序兼容性助手 提示框,这个是Win7在警告用户vc6存在兼容性问题:此程序存在已知的兼容性问题。 选中 不再显示此消息,点“运行程序”。(之后再有遇到“此程序存在已知的兼容性 ...
分类:
编程语言 时间:
2016-05-13 11:59:52
阅读次数:
164
func stringmid (wholestring:String,front:String,behind:String)->String { if wholestring.isEmpty { return("") //wholestring 不能为nil }else { var whole:NS ...
分类:
编程语言 时间:
2016-05-13 11:58:42
阅读次数:
215
POJ 1743 Description A musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a k ...
分类:
编程语言 时间:
2016-05-13 11:57:27
阅读次数:
240
...
分类:
编程语言 时间:
2016-05-13 11:56:41
阅读次数:
270
转载自:http://www.cnblogs.com/meitian/p/4607737.html 在做登录的post请求时,需要记住cookie,否则不能访问登录后的页面。 下面是登录的代码: #coding:utf-8import urllibimport http.cookiejar url ...
分类:
编程语言 时间:
2016-05-13 11:55:33
阅读次数:
186
今天出于某些原因从mongodb数据库中导出了一些数据,为了更直观的发送给其他人查阅,便使用mongoVUE的导出为excel功能。 但是导出后出现了一个问题,里边有一列存储时间的,存储的是long型毫秒数,在导出后就自动变成了科学记数法。 且不说从科学记数法中辨别出实际时间,即便是原本的毫秒值也是 ...
分类:
编程语言 时间:
2016-05-13 11:53:58
阅读次数:
159