摘要:
以EditText为例: username.setOnDragListener(new OnDragListener() {@Overridepublic boolean onDrag(View v, DragEvent event) {// TODO Auto-generated method s 阅读全文
posted @ 2018-03-05 13:13
zhchoutai
阅读(630)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2018-03-05 11:36
zhchoutai
阅读(1097)
评论(0)
推荐(0)
摘要:
//模拟实现strcmp函数 //str1>str2,返回1 //str1=str2,返回0 //str1<str2,返回-1 #include <stdio.h> #include <assert.h> int my_strcmp(const char *str1, const char *str 阅读全文
posted @ 2018-03-05 10:52
zhchoutai
阅读(415)
评论(0)
推荐(0)
摘要:
枚举、结构体、类 注:本文为作者自己总结。过于基础的就不再赘述 ,都是亲自測试的结果。如有错误或者遗漏的地方。欢迎指正,一起学习。 1、枚举 枚举是用来定义一组通用类型的一组相关值 ,关键字enum ,case关键词表明新的一行成员值将被定义。 enum Direction{ case East c 阅读全文
posted @ 2018-03-05 09:41
zhchoutai
阅读(184)
评论(0)
推荐(0)
摘要:
模板函数须要类型转换时使用友元(friend)模板函数 本文地址: http://blog.csdn.net/caroline_wendy/article/details/24357301 非模板函数參考: http://blog.csdn.net/caroline_wendy/article/de 阅读全文
posted @ 2018-03-05 09:02
zhchoutai
阅读(536)
评论(0)
推荐(0)

浙公网安备 33010602011771号