共 7 篇文章 |
|
利用typedef定义函数指针(转载自ITeye)5 //注意这里不是函数声明而是函数定义,它是一个地址,你可以直接输出add看看 6 int add(int a, int b) 7 { 8 return a + b; 9 }10 int sub(int a, int b)11 {12 return a - b;13 }14 int mul(int a, int b)15 {16 return a * b;17 }18 int div(int a, int b)19 {20 return b? a/b : -1;21 }22 //定义... 阅38 转0 评0 公众公开 14-08-25 12:19 |
使用SDK自带例子GestureBuilder建立手势库(位置:android-sdk-windows\samples\android-8\GestureBuilder)。1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="match_parent" 4 android:background="@... 阅323 转2 评0 公众公开 14-04-15 17:09 |
static IplImage *tmpH3;char *names[] = { "./images/test01.jpg", "./images/test02.jpg", "./images/test03.jpg", "./images/test04.jpg", "./images/test05.jpg","../images/test06.jpg", "./images/test07.jpg", "./images/test08.jpg", "./images... 阅320 转0 评0 公众公开 14-04-15 17:08 |
金庸笔下的良好代码风格。但金庸还是说出了他的名字,不过金庸并不是直接以叙述的方式告诉读者他叫吴道通,而是通过他的对手骂他:“姓吴的,你想怎样……吴道通,你到底要怎样……”接下来,就把他名字自然替换成吴道通了。在处理复杂的问题时,往往无法一上手就针对问题本身来提出解决方案,而要先建立起一些基本的模型,再将模型的约束条件... 阅19 转0 评0 公众公开 14-04-08 09:38 |