1.内联样式表(标签内部)> 嵌入样式表(当前文件中)> 外部样式表(外部文件中)>导入式,其中后两者的优先级成立有个条件,即在相同的权值下,并且嵌入式css的位置要在外部css的前面,也就是要先写<link href="style.css" ...> 后写<style type="text/css Read More
posted @ 2017-04-23 21:08 haipeng1991 Views(115) Comments(0) Diggs(0)
TimeUnit是一个枚举类型,可以将时间方便快捷的转换为(天、时、分、秒、纳秒)day,hour,minute,second,millli... 有了这个类我们可以方便将时间进行转换 for example: 1、我们将1个小时转换为多少分钟、多少秒 1小时转换分钟数为60分钟 TimeUnit. Read More
posted @ 2016-04-12 14:24 haipeng1991 Views(150) Comments(0) Diggs(0)
比较典型的深搜,注意1,最后的输出格式,我imposiable后面忘记endl了,结果PE了两次,有点可惜; 2.最后要以字典序输出 1 #include 2 #include 3 using namespace std; 4 5 #define MAX 8 6 7 int p,q; 8 int... Read More
posted @ 2015-11-18 20:34 haipeng1991 Views(146) Comments(0) Diggs(0)
这个题目用的时间有点长,还好一次就A了。这个题目主要是要理解题目,有以下三点要注意:1.冰壶打到石头会在旁边停下来,碰到的这个石头会碎掉。2.停下来的冰壶如果旁边有石头是不能往哪个方向运动的。3.找出起点之后要把起点改成vacant的,因为冰壶显然是可以经过起点的。我的代码比较长,但是应该比较好理解... Read More
posted @ 2015-11-18 14:37 haipeng1991 Views(152) Comments(0) Diggs(0)
#include #include using namespace std;#define MAX 25char s[MAX][MAX];int sum;int a[4][2] = {-1,0,1,0,0,1,0,-1};void DFS(int i,int j,int m,int n){ s... Read More
posted @ 2015-11-17 18:25 haipeng1991 Views(140) Comments(0) Diggs(0)
1. __global__: Alerts the compiler that a function should be compiled to run on a device instead of the host.2.The trick is actually in calling the de... Read More
posted @ 2015-09-14 16:57 haipeng1991 Views(243) Comments(0) Diggs(0)
第七章: 分支控制1.while((c=getchar()) != '' && c!= '\n'): 循环读入字符,直到出现第一个空格或者换行符 while(getchar()!='\n') continue 跳过输入行的剩余部分。2.逻辑表达式是从左到右求值的,一旦发现有使表达式为假的因素,立即停... Read More
posted @ 2015-07-03 15:05 haipeng1991 Views(336) Comments(0) Diggs(0)
原链接:http://blog.chinaunix.net/uid-24347760-id-1989578.html在突然听到这个名词后,在网上搜的。1.变长数组是分配在堆栈上的,其实从语义的角度也应该是这样,变长数组还是一个数组,还是一个局部变量,在c语言中,局部变量是分配在堆栈上的,malloc... Read More
posted @ 2014-08-21 15:50 haipeng1991 Views(2129) Comments(1) Diggs(0)
anti-dependency Read More
posted @ 2014-07-29 20:16 haipeng1991 Views(286) Comments(0) Diggs(0)
由于卸载时是暴力卸载的方式,导致重新安装的时候显示已经安装上了,可以找到HKCU\Software\Microsoft\Installer\Products\的内容,我由于不知哪个是Mysql的就都删除了,同样解决了问题。 Read More
posted @ 2012-09-13 21:23 haipeng1991 Views(7567) Comments(0) Diggs(0)