dllist.h 1 #ifndef _DLLIST_H 2 #define _DLLIST_H 3
4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 struct DLLNode_T{ 9 void
*pData; ...
分类:
其他好文 时间:
2014-05-18 19:51:42
阅读次数:
335
最近公司要求开发wap版本页面,碰到了个图片滑动切换效果,折腾了半天,自己封装了一个比较通用的小控件,在此分享一下。大概功能:可以自定义是否自动切换,支持单手滑动图片进行切换,支持左右滑动切换、循环切换等等,具体可以拿demo代码自己本地试试,注意只支持手机端哦大概思路:通过touchstart、t...
分类:
移动开发 时间:
2014-05-18 19:39:34
阅读次数:
492
1、ExitAction()
退出当前操作,无论其本地(操作)循环属性是什么。2、ExitActionIteration()
退出操作的当前循环。3、ExitComponent()退出当前组件并继续业务流程测试中的下一个组件,无论组件的循环设置是什么。4、ExitComponentIteration...
分类:
其他好文 时间:
2014-05-18 19:26:55
阅读次数:
217
脚本名:power.sh脚本内容:Shell代码 #!/bin/sh username3=$1
dir_name2=$2 # get existing directory file_path=$dir_name2 while true do if [ -d
$fil...
分类:
系统相关 时间:
2014-05-18 18:49:24
阅读次数:
319
hash做法:#include#includeconst int Max =
100010;int home[Max],away[Max],hash[Max];int main(){ int n,sum,total; int i,j;
while(scanf("%d",&n)!=E...
分类:
其他好文 时间:
2014-05-17 21:44:37
阅读次数:
504
最近这几天,不知道突然玩超级猜图玩疯了,最后觉得还是不过瘾,干脆下了ipa,运用素材自己写了一个,没想到居然实现了大部分功能,真开心,直接上图:上代码,不足之处,还望牛人支出,不胜感激:
1 #import "JHViewController.h" 2 #import "JHAppDate.h...
分类:
其他好文 时间:
2014-05-17 21:00:28
阅读次数:
568
解题思路:只要看(A-V)*K 这个公式的更新值是否大于等于A
,大于的话继续循环,否则报错注意一点,数据会爆intWA代码:#includeint main(){ long long n ,m, v, k; int t;
scanf("%d",&t); while(t--)...
分类:
其他好文 时间:
2014-05-17 20:49:27
阅读次数:
167
问题描述:设计一个算法,把一个含有N元素的数组循环左移或者右移K位。解决方法:1.
暴力解法------O(KN)2. 颠倒位置------O(N)具体思路和代码:1. 暴力解法------O(KN)思路:循环K次,每次移动一位代码: 1
//右移 2 void s1(int A[], int n,...
分类:
其他好文 时间:
2014-05-17 20:07:57
阅读次数:
257
高效的代码块: /* Iterator it =
al.iterator();//获取迭代器,用于取出集合中的元素。 while(it.hasNext()) { sop(it.next()); } ...
分类:
其他好文 时间:
2014-05-17 18:28:51
阅读次数:
252
while(scanf("%s",str+1)==1){intn=strlen(str+1);next[1]=0;intj=0;for(inti=2;i2#include3#include4#include5#include6#include7#include8usingnamespacestd;9...
分类:
其他好文 时间:
2014-05-17 18:14:24
阅读次数:
270