调用函数判断如下:if(getScrollY() + getHeight() >=computeVerticalScrollRange()){ Log.d(TAG,"------滚动到最下方------");}else{ Log.d(TAG,"没有到最下方");}或:重写ScrollVi...
分类:
其他好文 时间:
2015-07-06 21:18:42
阅读次数:
143
#include
#include
int main()
{
char str[3][50];
char string[50];
int i;
for(i=0;i0)
strcpy(string,str[0]);
else
strcpy(string,str[1]);
if...
分类:
其他好文 时间:
2015-07-06 19:50:03
阅读次数:
100
var run=[8,10,7,5,6];var max=run[0];for (var i =1; i < run.length; i++) { if (max<run[i]) { max=run[i]; }else{ max=max; }}alert...
分类:
编程语言 时间:
2015-07-06 15:49:51
阅读次数:
105
valid();}else{$wechatObj->responseMsg();}classwechatCallbackapiTest{publicfunctionvalid(){$echoStr=$_GET["echostr"];//validsignature,optionif($this->c...
分类:
微信 时间:
2015-07-06 15:33:01
阅读次数:
273
#Exploit for boffrom pwn import *#initcontext(arch = 'i386', os = 'linux')local=Falseif local: p = process("./bof")else: p = remote("143.248.249.64".....
分类:
其他好文 时间:
2015-07-06 14:07:23
阅读次数:
283
";}else{ echo "Welcome $ldap_user";}ldap_unbind($ldap_conn) or die("Can't unbind from LDAP server."); //与服务器断开连接?>LDAP:DN与RDN链接Appendix A - LDAP: DN ....
分类:
Web程序 时间:
2015-07-06 13:42:43
阅读次数:
344
选择结构-ifif(表达式) {} {}为作用域多重if-else 例如:#include int main(){ int amount = 888888; if(amountint main(){ double speed = 10.71; //百米速度 int male = 1; //...
分类:
移动开发 时间:
2015-07-05 23:52:27
阅读次数:
302
1 通用的search方法
STL在实现对特定key值的查找时,并没有采用通用的方法:
BRTreeNode * rb_tree_search(RBTreeNode * x, int key){
while(x ! = NULL && x->key != key){
if( x->key > key){
x = x ->left;
}else{
x = x->right...
分类:
其他好文 时间:
2015-07-05 21:16:46
阅读次数:
149
//去几个人 //for (int a = 0; a = 1 && a + d 5) // { gao = 0; } // else // { // gao = gao / 2; // } //{ Console.WriteLine("第" + a + "弹起的高度是:" + gao.T...
分类:
其他好文 时间:
2015-07-05 21:12:06
阅读次数:
123
函数模板特template int compare(T v1,T v2){if(v1v2) return 1;else return 0;}template int compare(char * s1,char * s2){ return strcmp(s1,s2);}类模板的特化templa...
分类:
编程语言 时间:
2015-07-05 21:04:47
阅读次数:
153