本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
java-007 - benladeng5225
- Anmin
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - wy_19921005
- vipbooks
- kaizi1992
- 青否云后端云
- e_e
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- lemonhandsome
- wallimn
- ganxueyun
- jh108020
- Xeden
- xyuma
- zhanjia
- wangchen.ily
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- jveqi
- javashop
- lzyfn123
- sunj
- yeluowuhen
- ajinn
- lerf
- silverend
- chenqisdfx
- xiaoxinye
- flashsing123
- bosschen
- lyndon.lin
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
最新文章列表
数据结构之排序的实现
1、插入排序
void InsertSort(RecType R[],int n){
int i,j,k;
RecType temp;
for (i=1; i<n; i++) {
temp=R[i];
j=i-1;
while (j>=0&&temp.key<R[j]. ...
js二级省市级联菜单
<html>
<head>
<title>-#</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
body { font-size: 1 ...
砝码称重,砝码可以两边放
Description
设有已知m个砝码,每个砝码的重量分别为g1、g2、…gm,现有一架天平,问用这些砝码能称出多少种不同的重量。(1<=m<=100,1<=每种砝码重量<=255)。(注意,砝码可以放在天平的两边)。
Input
第一行:整数 m、n,两整数间用空格分开;
接下来有m行:每行一个整数,第i+1行表示第I个砝码的重量,
Output
能称 ...
Linux的ASCII码文本编辑器
Linux下的纯文本文件编辑器
Linux下有很多文本编辑器,如vi, emacs, xemacs, joe, e3, xedit, kedit, pico ....
基本上 vi 共分为三种模式,分别是『一般模式』、 『 ...
asynctask 异步task
异步task是一个线程,但是可以和ui主线程交互。
他可以传入参数,参数传入doInBackground(Integer... params)。doInBackground(Integer... params)的返回值作为result,传 ...
finally知多少
先来看一下以下的代码,猜猜他们会是什么样的结果:
1
public
class
FinallyIssue {
2
public
static
void
main(String[] args) {
3
System.out.println(
"
finallyReturn ...
求长为n的数中任意m个数的组合
问题可分解为:1. 首先从n个数中选取编号最大的数,然后在剩下的n-1个数里面选取m-1个数,直到从n-(m-1)个数中选取1个数为止。2. 从n个数中选取编号次小的一个数,继续执行1步,直到当前可选编号最大的数为m。很明显,上述方法是一个递归的过程,也就是说用递归的方法可以很干净利索地求得所有组合。
上代码:
package algorithm.ms100;
publi ...
为GridView每个单元格鼠标移上去显示div
这里读的是xml,大家可以参照自己的读取方式将数据转换成表格.
gridview 的RowBound事件里面的内容
//鼠标经过时候显示divfunctionshowdivByCs(table)...{//table=table.replace("&","&");//table=table.replace("& ...
《被误解的C++——学习和使用》的案例
假设我们现在有个任务,要做一个程序,将一个数组中的每一个元素乘上100,然后赋值回去。为此,我写下了这样的C#代码:
int[] ai=new int[10];
//初始化ai。
foreach(int i in ai)
{
i*=100;
}
我又写了C++代码:
vector<int> ai(10);
//初始化ai。
for(vector<int> ...