1.for a two dimension vector, we must assign at
least the first dimension of the vector2.each dimension of an inner vector can
be different3.if you do...
分类:
其他好文 时间:
2014-04-30 18:47:20
阅读次数:
549
题目:Erwin最近对一种叫"thair"的东西巨感兴趣。。。在含有n个整数的序列a1,a2......an中,三个数被称作"thair"当且仅当i k do
dec(j); 32 if i j); 40 if i 0) do 59 begin 60 in...
分类:
其他好文 时间:
2014-04-30 14:58:46
阅读次数:
501
ASP.NET Web Pages framework examples of the
Database helper do not include calls to Close or Dispose because the framework
itself is designed to call ...
分类:
数据库 时间:
2014-04-30 14:08:51
阅读次数:
629
Given preorder and inorder traversal of a tree,
construct the binary tree.Note:You may assume that duplicates do not exist in
the tree.思路:由前序遍历数组和中序遍历...
分类:
其他好文 时间:
2014-04-30 02:20:33
阅读次数:
366
项目中嵌入了IE控件,近期做了一次大改版,发现网页不能进行复制和剪切了,折腾了半天,发现是com初始化有问题:修正前的方式:CoInitialize(NULL);//
do your workCoUninitialize();修正后的方式:OleInitialize(NULL);// do your...
分类:
Web程序 时间:
2014-04-29 23:24:02
阅读次数:
509
求由所有的点组成的三角形中周长最小的三角形的周长1.将所有的点按横坐标大小排序2.从第一个点开始往后枚举,判断能否组成三角形,判断当前三角形周长是否小于已经得到的最小周长代码如下:#include#include#include#includeusing
namespace std;const do...
分类:
其他好文 时间:
2014-04-29 21:14:42
阅读次数:
504
A LiveJournal course of developmentis a project
in the 99 years began in the campus, a few people do as a hobby such an
application, in order to achie...
分类:
其他好文 时间:
2014-04-29 19:38:16
阅读次数:
589
2014-04-28
21:45题目:就地交换两个数,不使用额外的变量。解法:没说是整数,我姑且先当整数处理吧。就地交换可以用加法、乘法、异或完成,其中乘法和加法都存在溢出问题。三种方法都不能处理交换同一个数的情况,需要条件判断。代码:
1 // 17.1 Do a swapping in-plac...
分类:
其他好文 时间:
2014-04-29 17:19:40
阅读次数:
343
Java语言中提供了4类程序控制语句,来描述流程: 1.选择语句:if-else,switch,
2.循环语句:while,do-while,for 3.跳转语句 break,continue 4.异常处理语句:try-catch-finally,throw
1、选择语句意思是根据某种...
分类:
其他好文 时间:
2014-04-29 15:23:40
阅读次数:
463
今天主要学习了循环语句和跳转语句。首先是while,它是先验循环,就是先验证在循环,所以有可能出现死循环或是一次都没有循环过。语法结构为:while(布尔表达式){循环体
} 后验循环do-while,是先执行再检验。其语法结构为:do{ ...
分类:
编程语言 时间:
2014-04-29 14:55:49
阅读次数:
528