- 博客(9)
- 资源 (8)
- 收藏
- 关注
原创 android Activity 变成Dialog的方法
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android
2013-01-23 14:53:07 3400
原创 判断两条线段相交的两种算法
// Returns true if the lines between v0v1 and t0t1 cross// If the lines cross, the intersection between them will// be stored in intersectionPointbool linesCross(b2Vec2 v0, b2Vec2 v1, b2Vec2 t0, b2
2013-01-22 16:42:56 1885
原创 cocos2d-x 关于CCpoint的一些算法或者说扩展
/** Returns opposite of point. @return CCPoint @since v0.7.2 */static inline CCPointccpNeg(const CCPoint v) //计算关于原点的对称点{ return ccp(-v.x, -v.y);}/** Calculates sum of two points. @re
2013-01-21 17:11:28 11737
转载 cocos2dx教程收藏
1.cocos2dxbox2d实现物体爆裂效果http://blog.csdn.net/dragoncheng/article/details/7787471
2013-01-20 22:19:01 1603 1
转载 Android应用程序开发常见问题 FAQ
问:在平时Android开发时突然执行程序,出现了 Application does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses- libraryandroid.test.runner的错误提示?答:这主要是你在Run As中错误的选择了目标为Andr
2013-01-20 18:40:58 1204
原创 android sqlite自定义DBHelper
package com.sms.db;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.FileReader;import java.io.IOException;import
2013-01-19 13:16:16 4011
原创 linux Y480安装有线网卡驱动
sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`wget -O- http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 | tar -xjcd co
2013-01-10 16:46:57 2081
原创 Y480N linux安装显卡驱动
I got the GPU running on Lenovo Y480P on Ubuntu 12.04/12.10. It has Nvidia GT640M LE. There is a bug in ACPI module. It detects the wrong handle. Use these steps:git clone git://github.com/Bumbleb
2013-01-10 12:46:11 1916
原创 c++ vector反转reverse
template void reverse ( BidirectionalIterator first, BidirectionalIterator last);如果不是改变原来的容器,而是翻转之后放在新容器里面,直接用reverse_copy ( BidirectionalIterator first, Bidirecti
2013-01-02 18:58:38 63771
[有源码]ViewPager+Fragment+RadioButton替代TabActivity
2013-10-13
boost+win7+vs2010+vs2012自动下载编译安装软件
2013-03-22
解析plist所需的c++文件cpp
2012-09-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人