- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 UIGestureRecognizer手势识别器
监听触摸事件的做法 • 如果想监听一个view上面的触摸事件,一个做法是 ➢ 自定义⼀个view ➢ 实现view的touches方法,在方法内部实现具体处理代码 • 通过touches方法监听view触摸事件,有很明显的几个缺点 ➢ 必须得自定义view ➢ 由于是在view内部的touches方法中监听触摸事件,因此默认情况下,无法让其他外界
2015-11-21 15:24:34 248
原创 HDOJ 1002 C语言版
#include #include int main() { int n,j; scanf("%d",&n); if(n20) return 0; for(j=0;j { int a[1000]={0},b[1000]={0},c[1000]={0},i,ka,kb,k; char a1[
2014-06-30 20:04:02 822
原创 HDOJ 1001 递归方法
#include using namespace std; int fun(int n) { if(n==1)return 1; else return (fun(n-1)+n); } int main() { int n; while(cin>>n) cout<<fun(n)<<endl<<endl; return 0; }
2014-06-30 00:15:44 334
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人