码迷,mamicode.com
首页 > 其他好文
逻辑覆盖法和基本路径法
逻辑覆盖法 逻辑覆盖是以程序内部的逻辑结构为基础的测试用例设计技术,这一方法要求测试人员对程序的逻辑结构有清楚的了解。逻辑覆盖可分为:语句覆盖、判定覆盖、条件覆盖、判定-条件覆盖、条件组合覆盖与路径覆盖。 1. 语句覆盖就是设计若干个测试用例,运行所测程序,使得每一可执行语句至少执行一次。 2...
分类:其他好文   时间:2015-04-27 00:03:14    阅读次数:313
Improving performance – A full stack problem
Improving performance – A full stack problemMarch 6, 2015 by ronald 4 CommentsImproving the performance of a web system involves knowledge of how the ...
分类:其他好文   时间:2015-04-27 00:02:14    阅读次数:355
getBoundingClientRect的用法
getBoundingClientRect用于获取某个元素相对于视窗的位置集合。集合中有top, right, bottom, left等属性。1.语法:这个方法没有参数。rectObject = object.getBoundingClientRect();2.返回值类型:TextRectangl...
分类:其他好文   时间:2015-04-27 00:00:41    阅读次数:288
HDU 5211 筛法求约数
前几天好像刚做一道筛法求约数的题,这个写起来就很顺手了
分类:其他好文   时间:2015-04-27 00:00:02    阅读次数:256
xcode自带git身份不确认以及commit不能提交问题
废话少说直接上图出现这个问题应该是本地库没有创建或者说是内容没有导入造成。1方法;首次创建项目时勾选git2打开终端,把该项目地址输入进去 cd 文件地址(可以通过直接托转文件夹来搞定)3 ls -a查看目录下的文件。看是否有带.git的文件目录4如果有,ls -l -a 应该能发现带.git的文件...
分类:其他好文   时间:2015-04-26 23:59:09    阅读次数:2124
软件测试学习笔记week 7 --- Peer Review
同行评审(Peer review,在某些学术领域亦称 Refereeing),或译为同侪审查,是一种学术成果审查程序,即一位作者的学术著作或计划被同一领域的其他专家学者评审。一般学术出版单位主要以同行评审的方法来选择与筛选所投送的稿件录取与否,而学术研究资金提供机构,也广泛以同行评审的方式来决定研究...
分类:其他好文   时间:2015-04-27 00:00:31    阅读次数:393
Binary Tree Right Side View
Binary Tree Right Side View问题:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered...
分类:其他好文   时间:2015-04-27 00:00:59    阅读次数:265
c中的浮点数比较
const float CHAZHI = 0.0000001; float a = ...; float b = ...; float d = a - b; if( d > CHAZHI) { printf("a > b"); } else if( d < -CHAZHI) { printf("a < b"); } else if(d <= fabs(CHAZHI)) {...
分类:其他好文   时间:2015-04-26 22:57:11    阅读次数:303
errno.c
#include #include #include int main(int argc, char *argv[]) { fprintf(stderr, "EACCES : %s\n",strerror(EACCES)); errno = ENOENT; perror(argv[0]); return 0; }函数fprintf:int fprintf(FILE *stream,...
分类:其他好文   时间:2015-04-26 22:56:07    阅读次数:330
1 UVA 10789 Prime Frequency
先筛素数,再统计给定字符的出现频率。 #include #include using namespace std; bool pri[2010]; char s[2010]; void init() { int i,j; memset(pri,1,sizeof pri); pri[0]=pri[1]=0; for(i=2;i<=2000;i++) ...
分类:其他好文   时间:2015-04-26 22:56:21    阅读次数:264
3 UVA 10852 Less Prime
先筛素数, 再枚举题目范围内质数,答案就是求最小的ans=n-n/i*i ,其中i是枚举的质数 #include #include #include using namespace std; bool pri[10010]; void init() { int i,j; memset(pri,1,sizeof pri); pri[0]=pri[1]=0;...
分类:其他好文   时间:2015-04-26 22:56:07    阅读次数:246
4 UVA 10924 Prime Words
筛素数,把给的单词中出现的字母对应值加起来,判断是否是质数。 #include #include using namespace std; const int maxn=2000; int pri[maxn+10]; char s[100]; void init() { int i,j; memset(pri,1,sizeof pri); pri[0]=0...
分类:其他好文   时间:2015-04-26 22:55:49    阅读次数:141
ora-28001:the password has expired.(密码失效)
ora-28001:the password has expired.(密码失效)...
分类:其他好文   时间:2015-04-26 22:54:00    阅读次数:128
5 POJ 3132 Sum of Different Primes
dp[j][k]表示用j个质数表示k这个值得方法数。 一个质数只能用一次,类似01背包。 #include #include const int maxn=1130; int pri[maxn+10],dp[20][maxn+10]; void init() { int i,j; for(i=0;i<=maxn;i++) pri[i]=1; pri[0]...
分类:其他好文   时间:2015-04-26 22:55:13    阅读次数:214
【个人总结】写在网易游戏和阿里实习前
阿里,腾讯,网易游戏。。。噢,我辈何惧一战...
分类:其他好文   时间:2015-04-26 22:54:56    阅读次数:147
远程进行kvm虚拟机的安装
# virsh version Compiled against library: libvirt 1.1.1 Using library: libvirt 1.1.1 Using API: QEMU 1.1.1 Running hypervisor: QEMU 1.5.3 cat /etc/redhat-release Red Hat Enterprise Linux Server...
分类:其他好文   时间:2015-04-26 22:53:43    阅读次数:310
开源软件配置管理过程(2)——Github
二、Github——交流协作的极佳场所Github目前已经不单单是一种交流协作工具,不仅仅是一个开源软件协作平台,更成为了一种开源文化的象征。开源文化本着自由、平等、共享的思想,获得了很多人的好评和推广。...
分类:其他好文   时间:2015-04-26 22:53:35    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!