页首Html代码

返回顶部
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页
摘要: 一个android apk的编译过程 请参考:http://www.2cto.com/kf/201312/261475.html典型的编译过程:aapt( Android Asset Packaging Tool): 把你的应用程序资源文件(例如: AndroidManifest.xml file ... 阅读全文
posted @ 2014-05-10 18:16 ayanmw 阅读(28264) 评论(0) 推荐(2) 编辑
摘要: MySQL触发器 重要学习资料:http://dev.mysql.com/doc/refman/5.1/zh/triggers.html在使用触发器的时候,遇到一个错误:[SQL]insert into tb_recharge_records(user_id,pointcoupon_added) v... 阅读全文
posted @ 2014-05-05 18:49 ayanmw 阅读(4176) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-04-26 20:50 ayanmw 阅读(0) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;typedef unsigned char BYTE;typedef unsigned int UINT32;typedef unsigned short UINT16;struct Datastru... 阅读全文
posted @ 2014-04-21 15:12 ayanmw 阅读(2606) 评论(2) 推荐(0) 编辑
摘要: 废话不多说,直接看代码:#includeint main(){ int i=5; for(int z=i,zmax=i+10;z<zmax;z++){ printf("i=%d z=%d\n",i,z);i++; } /* 无限循环了.... fo... 阅读全文
posted @ 2014-04-15 14:10 ayanmw 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 遇到过几次错误,通过gdb来查看错误对战,发现错误居然是atoi调用出错,除非atoi(NULL) 才会报这种错误.说明 row[0]==NULL.(gdb) bt#0 0x00007f82c6629132 in ____strtoll_l_internal () from /lib64/libc.so.6#1 0x00007f82c6625ee0 in atoi () from /lib64/libc.so.6#2 0x0000000000438c7b in MySQL_Util::select_one ( sql_string=0x7f82c4544190 "select su. 阅读全文
posted @ 2014-04-07 15:14 ayanmw 阅读(961) 评论(0) 推荐(0) 编辑
摘要: vim粘贴代码 如果有注释,那么粘贴后就惨不忍睹,类似于:我粘贴代码到a.cpp,内容为://打印函数void print_hex(const unsigned char*data,int length,int radix=16){ for(int i=0;i这样直接在插入模式按F9就会在“-- 插入 --”模式和“-- 插入(粘贴) --”模式中切换探秘:最近使用Vim来写博客,发现在Vim中粘贴Python代码后,缩进就全乱了。仔细研究了以下,原来是自动缩进的缘故,于是做如下设置::set noai nosi 取消了自动缩进和智能缩进,这样粘贴就不会错行了。但在有的vim中不行,还是... 阅读全文
posted @ 2014-04-04 14:55 ayanmw 阅读(18419) 评论(1) 推荐(2) 编辑
摘要: 转载自:http://blog.csdn.net/daydreamingboy/article/details/6310907分析MySQL数据类型的长度 MySQL有几种数据类型可以限制类型的"长度",有CHAR(Length)、VARCHAR(Length)、TINYINT(Length)、SMALLINT(Length)、MEDIUMINT(Length)、INT(Length)、BIGINT(Length)、FLOAT(Length, Decimals)、DOUBLE(Length, Decimals)和DECIMAL(Length, Decimals)。 然而,这 阅读全文
posted @ 2014-04-02 15:37 ayanmw 阅读(21228) 评论(0) 推荐(1) 编辑
摘要: »版权所有:《菜鸟Thinkman的个人网站》 → 《对于孩子:旅行的意义何在?【转】》;»本文网址:http://www.ithinkman.net/index.php?post=42;»除特别标注,本博客所有文章均为原创. 互联分享,尊重版权,转载请以链接形式标明本文地址;Thinkman发表于 2014-1-3 22:10 Friday育儿与成长一位带孩子旅行家长的随笔:Pony4岁时,我们第一次带他出门远行,到海南三亚。从此,我们带孩子旅行的脚步再没有停止:5岁进贵州;6岁上草原;7岁游遍瑞士四大语区;不到8岁乘房车从中国云南出发行驶5000公里历时18天 阅读全文
posted @ 2014-04-01 17:41 ayanmw 阅读(386) 评论(0) 推荐(0) 编辑
摘要: http://baike.baidu.com/view/1080853.htm随便一查,就可以查到基本用法,但是。。。http://blog.csdn.net/maocl1983/article/details/6221810如果有两个localtime调用time_ttNow=time(NULL);time_ttEnd=tNow+1800;//注意下面两行的区别structtm*ptm=localtime(&tNow);structtm*ptmEnd=localtime(&tEnd);ptm和ptmEnd会指向同一内存,那么结果会是一样的,这一点,除了官方 英文呢 文档 和提 阅读全文
posted @ 2014-01-20 15:29 ayanmw 阅读(8776) 评论(0) 推荐(0) 编辑
摘要: 这是一个填空题:#include#include#includeusing namespace std;int get_bit_count_1(int num){ if(num==0){ return 0; }else{ return 【 】; }}int get_bit_count_2(int num){ // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 int dic[]={0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4}; return dic[(num... 阅读全文
posted @ 2013-12-27 14:16 ayanmw 阅读(1277) 评论(2) 推荐(1) 编辑
摘要: 需求:数据库取出的字段类似于 "1,3,4"然后用数字处理后,,比如 "1,2,3" 再存回去#include#includeclass MyStr{public: //根据 "1,2,3" 获得数字数组 static int *split(char * str,const char *split,const int count){ if(strlen(str)==0 || strlen(split)==0) return NULL; if(count <=1) return NULL; int * ints=new ... 阅读全文
posted @ 2013-12-20 20:13 ayanmw 阅读(7308) 评论(2) 推荐(0) 编辑
摘要: 由于windows server 2008 R2 安装了 远程桌面角色,但是这个角色是120天免费的,需要购买授权的【可恶的微软,多用户登录,都要收钱。对于unix来说,多用户是很普通的系统功能】解决方法是取消这个角色,就可以恢复正常的远程了。现在无法远程,提示这个错误,怎么才能登陆,取消角色呢?mstsc /v:IP /admin这样就可以登陆了。然后再把远程桌面 角色删除,重启计算机,OK done!资料:百度http://hi.baidu.com/yuanyang203/item/269f0b5ff95bba4c4eff20c4 阅读全文
posted @ 2013-12-18 18:45 ayanmw 阅读(91704) 评论(1) 推荐(1) 编辑
摘要: 头段时间我的代码,有一个 unsigned char,我需要从sscanf 中读取字符串为这个值。但是一般char 是用%c的,我是要值得。所以我使用了%d %u来读,结果报警告:unsigned char a;sscanf("15","%u",&a);warning: format ‘%u’ expects type ‘unsigned int*’, but argument 3 has type ‘unsigned char*’警告挺烦人的,查了下,才发现自己没有注意过的细节:I'm trying to use this code t 阅读全文
posted @ 2013-12-16 18:36 ayanmw 阅读(13982) 评论(0) 推荐(1) 编辑
摘要: 转自:http://www.cppblog.com/xvsdf100/archive/2013/12/10/204689.html只要接触过c/c++网路编程人都可能会知道select io 模式,网络书籍都说 fd_set {int num; SOCKET arr[64]} 有所限制,因为数组的长度只有64,那么超过64你就不能放,要么你就是用多线程分别实用select.。一些书籍通过改定义宏 使数组的长度变长,但也不实用,不能动态的变化,我总不能定一个非常的长的长度,毕竟是在栈上。 我就在想那么select完全只能在客户端使用,而且套接字还不能超过64。那这不就是一个软肋吗??一直对这个有 阅读全文
posted @ 2013-12-10 14:34 ayanmw 阅读(9472) 评论(1) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页

页脚Html代码