上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 455 下一页
软件调试和硬件调试都是调试,思路差不多,一些具体操作方式上有所差别。这是我在工作中总结的一些认识: 1.调试总的指导思想是,任何一个实验应该唯一说明一个问题。成功了,唯一的结论是推论是成功的;失败了,唯一的结论是推论是失败的。这都是带有唯一性的。实际操作中可能并不好做到,但其中的一个唯一应该是可以做到的。 2.由于软件硬件的耦合,杂散参数的影响。根本问题一样,可能现象每次发生都不一样。大胆的假设,仔细的求证是调试中是可以依托的一个大法宝。 3.经验总得来说,是一种实践过程中的总结和记忆。一般来讲,经验往往带有不精确性和一些大前提。在下一个项目或调试中应用这些经验,要确认这些不精确性和前... Read More
posted @ 2013-07-30 19:46 javawebsoa Views(413) Comments(0) Diggs(1)
[oracle@rac11g1 ~]$ rman target haha/haha@rac11g Recovery Manager: Release 11.2.0.3.0 - Production on Mon Jul 29 23:27:12 2013 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. RMAN-00571: =========================================================== RMAN-00... Read More
posted @ 2013-07-30 19:44 javawebsoa Views(1747) Comments(0) Diggs(0)
BandwidthGiven a graph (V,E) where V is a set of nodes and E is a set of arcsin VxV, and anordering on the elements in V, then the bandwidth of a node v is defined as the maximum distance in theordering between v and any node to which it is connected in thegraph. The bandwidth of the ordering is the Read More
posted @ 2013-07-30 19:42 javawebsoa Views(195) Comments(0) Diggs(0)
Email:longsu2010 at yeah dot net 工作中难免遇到需要压缩文件的情况,比如有一千万个小文件,每个文件约100k,如果使用7-zip压缩后可能十几k,可以节省很多磁盘空间。基于此就可以写一段程序调用7z来压缩这些小文件,压缩后将源文件删除。 7z的下载可以到如下网站,前者英文,后者中文。 http://www.7-zip.org/ http://sparanoid.com/lab/7z/ 下载完成后安装即可。 打开命令提示符并切换到7z.exe所在目录(也可将7z拷贝到其他目录) 输入7z --help可以查看使用方法,如下图。 压... Read More
posted @ 2013-07-30 19:40 javawebsoa Views(1260) Comments(0) Diggs(0)
题意: 一个数只含有4,7就是lucky数...现在有一串长度为n的数...问这列数有多少个长度为k子串..这些子串不含两个相同的lucky数... 子串的定义..是从这列数中选出的数..只要序号不同..就不不同的串..如 1 1 的长度为1的子串有两个 题解: 解题前可以先求一下1000000000内有多少个数是lucky的...可以递推的求..也可以暴力求~~可以看出最多1022个lucky数..很少... 现将这堆数的所有lucky数找出来...把相同的放在一个lucky数里计数... dp[ i ] [ k ] 代表到了第i个luck... Read More
posted @ 2013-07-30 19:38 javawebsoa Views(242) Comments(0) Diggs(0)
终于有了完整实现C++11的GCC 4.8.1.给自己的系统升级吧。下面的步骤可以安装GCC4.8.1, 内容来自:http://askubuntu.com/questions/312620/how-do-i-install-gcc-4-8-1-on-ubuntu-13-04sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++sudo apt-get install gcc-4.8 Read More
posted @ 2013-07-30 19:36 javawebsoa Views(359) Comments(0) Diggs(0)
本题的特殊性是价值与重量相等 将第i种物品分成若干件物品,其中每件物品有一个系数, 这件物品的费用和价值均是原来的费用和价值乘以这个系数。 使这些系数分别为1,2,4,…,2^(k-1),n[i]-2^k+1,且k是满足n[i]-2^k+1>0的最大整数。 例如,如果n[i]为13,就将这种物品分成系数分别为1,2,4,6的四件物品。 分成的这几件物品的系数和为n[i],表明不可能取多于n[i]件的第i种物品。 另外这种方法也能保证对于0..n[i]间的每一个整数,均可以用若干个系数的和表示 /* * 2844_1.cpp * * Created on: 2013年7月30日 * ... Read More
posted @ 2013-07-30 19:34 javawebsoa Views(220) Comments(0) Diggs(0)
今天发现有时VS 热键好使,有时,怎么按都没有反应。后来发现是和输入法有冲突,把输入法快捷键改了就好了。 Read More
posted @ 2013-07-30 19:32 javawebsoa Views(265) Comments(0) Diggs(0)
一、 window.open() 支持环境: JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+ 二、基本语法: window.open(pageURL,name,parameters) 其中: pageURL 为子窗口路径 name 为子窗口句柄 parameters 为窗口参数 ( 各参数用逗号分隔 ) 三、示例: 脚本运行后, page.html 将在新窗体 newwindow 中打开,宽为 100 ,高为 400 ,距屏顶 0 象素,屏左 0 象素,无工具条,无菜单条,无滚动条,不可调整大小,无地址栏,无状态栏。请对... Read More
posted @ 2013-07-30 19:30 javawebsoa Views(393) Comments(0) Diggs(0)
比如一条记录是 1987 9 2 1988 8 26 代表公司员工生日 然后需要读入到系统 现在需要放入容器,并且排序 最后输出到新的文件中,按照年龄由大到小。#include "stdafx.h"#include #include #include#include#includeusing namespace std;int _tmain(int argc, _TCHAR* argv[]){ string ifilename = "birthday.txt",s; string ofilename = "orderedBirth.txt&qu Read More
posted @ 2013-07-30 19:27 javawebsoa Views(949) Comments(0) Diggs(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 455 下一页