现在位置: 首页 > ingleside发表的所有文章
  • 06月
  • 06日
综合 ⁄ 共 97字 评论关闭
快速排序是递归的,需要一个栈存放每一层递归调用的信息,其最大容量与递归调用的深度一致。最好情况下为o(logn),最坏情况下需要进行n-1递归调用,栈的深度为o(n)。平均,栈深为o(logn)
阅读全文
  • 03月
  • 16日
综合 ⁄ 共 4330字 评论关闭
Debugview调试视图 The  Debug viewshows the target debugging information in a tree hierarchy. The numberbeside the thread label is a reference counter, not a threadidentification number (TID). The CDTdisplays stack frames as child elements. It displays the reason forthe suspension beside the thread, (such as end of stepping range,breakpoint hit, and signal received). When a program exits, the exitcode is displayed. The iconsthat appear in the Debug view include: Icons Session......
阅读全文
  • 12月
  • 13日
综合 ⁄ 共 882字 评论关闭
http://haixiaoyang.wordpress.com/category/dynamic-programming/ 这个比求最大矩阵要方便多了,记录的是rec[i][j]矩阵边上的点的数目 //There is a square of n x n size which is comprised of n-square 1x1 squares. //Some of these 1x1 squares are colored. Find the biggest //sub square which is colored. Also asked to extend it to find the biggest area rectangle const int N = 5; int FindLargestArea(bool A[N][N]) { int rec[N][N]; int nRet = 0; for (int i = 0; i < N; i++) { rec[0][i] = A[......
阅读全文
  • 08月
  • 11日
综合 ⁄ 共 505字 评论关闭
1.你的“上帝”是怎么期望的。 2.项目经理是如何理解的。 3.设计师么是怎么设计的。 4.程序员们是如何开发的。 5.测试员们得到的。 6.你的商业顾问是怎么形容的。 7.项目档案是如何纪录的。 8.它是怎么付诸于实际的。 9.顾客如何买你的帐。 10.它是如何被支持的。 11.广告是如何做的。 12.客户到底需要的是什么。 下面对上述组图进行完整的解释如下: 客户:我家有三个小孩,我须要一个能三个人用的秋千。它是由一绳子吊在我园子里的树上。 项目经理:秋千这东西太简单了,秋千就是一块板子,两边用绳子吊起来,挂在树上的......
阅读全文
  • 05月
  • 23日
综合 ⁄ 共 1335字 评论关闭
一、Linux文件权限     每个Linux文件具有四种访问权限:可读(r)、可写(w)、可执行(x)和无权限(-)。     利用ls -l命令可以看到某个文件或目录的权限,它以显示数据的第一个字段为     准。第一个字段由10个字符组成,如下:         -rwxr-xr-x     第一位表示文件类型,-表示文件,d表示目录     2-4位表示文件所有者的权限,u权限     5-7位表示文件所有者所属组成员的权限,g权限     8-10位表示所有者所属组之外的用户的权限,o权限       2-10位的权限总和有时称为a权限     以上例子中,表示这是一个文件(非目录),文件所......
阅读全文
  • 05月
  • 21日
综合 ⁄ 共 1536字 评论关闭
<?php header("Content-type: text/html; charset=utf-8"); /** * 遍历目录,计算文件大小 * @prama $dir:文件夹路径 */ function getDirSize($dir) { file_exists($dir) or die(" 文件目录不存在!<br/>"); $handle = opendir($dir); $sizeResult = ""; $timeResult=array(); while (false!==($FolderOrFile = readdir($handle))) { if($FolderOrFile != "." && $FolderOrFile != "..") { $fileName=$dir.......
阅读全文
  • 05月
  • 04日
综合 ⁄ 共 7101字 评论关闭
谭浩强C语言 http://www.codeguru.cn/cpp/TanHaoQiangC 十部算法经典著作 合集http://www.codeguru.cn/cpp/10book 二级试题全集http://www.codeguru.cn/cpp/2JiCShiTiJi 高质量C++/C编程指南http://www.codeguru.cn/cpp/AdvanceC++-CProgramGuide 应用C++技术构建优质软件http://www.codeguru.cn/cpp/AppliedCpp ASCII码表http://www.codeguru.cn/cpp/ASCII C/C++语言程序百例http://www.codeguru.cn/cpp/C&&C++YuanYanChenXuBaili C++编码规范与指导http://www.codeguru.cn/cpp/C++CodingGuide C++PrimerPlus4thhttp:/......
阅读全文
  • 04月
  • 19日
综合 ⁄ 共 2876字 评论关闭
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.List; import android.hardware.Camera; import android.hardware.Camera.Size; public class SupportedSizesReflect {     private static Method Parameters_getSupportedPreviewSizes = null;     private static Method Parameters_getSupportedPictureSizes = null;     static {         initCompatibility();     };     private static void initCompatibility() {         try {        ......
阅读全文
  • 04月
  • 17日
综合 ⁄ 共 1577字 评论关闭
(1)GCC主要包括以前一些工具:   cpp(预处理器)、gcc(c编译器)、g++(c++编译器)等编译器以及binutils等二进制工具.   其中,binutils是辅助GCC的主要软件,常用的工具有:as(汇编器)、ld(链接器)等.   (2)一般来说,面向c程序的gcc编译过程主要分4个阶段:   1、预处理阶段,完成宏定义和include文件展开等工作.   2、根据编译参数进行不同程度的优化,编译成汇编代码.   3、用汇编器将汇编代码进一步生成目标代码.   4、用连接器将生成的目标代码和系统用户提供的库链接起来,生成可执行文件.   因此,Linux下的gcc是一个能生成可执......
阅读全文
  • 04月
  • 10日
综合 ⁄ 共 661字 评论关闭
1.如果PCB的地较多,有SGND、AGND、GND,等等,就要根据PCB板面位置的不同,分别以最主要的“地”作为基准参考来独立覆铜,数字地和模拟地分开来敷铜自不多言,同时在覆铜之前,首先加粗相应的电源连线:5.0V、3.3V等等,这样一来,就形成了多个不同形状的多变形结构。 2.对不同地的单点连接,做法是通过0欧电阻或者磁珠或者电感连接; 3.晶振附近的覆铜,电路中的晶振为一高频发射源,做法是在环绕晶振敷铜,然后将晶振的外壳另行接地。 4.孤岛(死区)问题,如果觉得很大,那就定义个地过孔添加进去也费不了多大的事。 5.在开......
阅读全文
  • 02月
  • 01日
综合 ⁄ 共 5874字 评论关闭
package util; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.UnsupportedEncodingException; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.methods.ByteArrayRequestEntity; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.params......
阅读全文
  • 01月
  • 31日
综合 ⁄ 共 322字 评论关闭
1 如何将字串 String 转换成整数 int?  A. 有两个方法: 1). int i = Integer.parseInt([String]); 或  i = Integer.parseInt([String],[int radix]); 2). int i = Integer.valueOf(my_str).intValue();  注: 字串转成 Double, Float, Long 的方法大同小异.  2 如何将整数 int 转换成字串 String ?  A. 有叁种方法: 1.) String s = String.valueOf(i); 2.) String s = Integer.toString(i);  3.) String s = "" + i;  注: Double, Float, Long 转成字串的方法大同小异.
阅读全文