哎,第一,我想说官网的教程尚需完善第二:是我自己基础不好,所以费了点劲就是这样:tcp::endpoint
end_p(boost::asio::ip::address_v4::from_string("127.0.0.1"), target_port);
tcp::endpoin...
分类:
其他好文 时间:
2014-05-23 11:45:19
阅读次数:
279
oc为每个对象提供一个内部计数器,这个计数器跟踪对象的引用计数,当对象被创建或拷贝时,引用计数为1,每次保持对象时,调用retain接口,引用计数加1,如果不需要这个对象时调用release,引用计数减1,当对像的引用计数为0时,系统就会释放掉这块内存,释放对象调用dealloc
当对象包含其他对象时,就得在dealloc中自己释放他们
NSObject是IOS所有类的基类
有两个基本函数,...
分类:
其他好文 时间:
2014-05-23 07:53:38
阅读次数:
333
一、Ant 打包:(下载ant、配置环境变量就不说了)
1、进入命令行模式,并切换到项目目录,执行如下命令为ADT创建的项目添加ant build支持:
android update project -p . -t "android-17"
2、build脚本默认target是help,所以会显示如上信息,修改target为debug或release就可以像无ant时一样编...
分类:
移动开发 时间:
2014-05-23 07:40:45
阅读次数:
361
【题目】
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assume no du...
分类:
其他好文 时间:
2014-05-22 10:43:12
阅读次数:
310
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
...
分类:
数据库 时间:
2014-05-22 10:00:09
阅读次数:
434
【题目】
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array.
Here are few examples.
[1,3,5,6], 5 → 2
[1,3,5,6]...
分类:
其他好文 时间:
2014-05-22 09:41:59
阅读次数:
195
【题目】
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found in the array, return [-1, -1].
For example,
Given [5...
分类:
其他好文 时间:
2014-05-22 06:44:39
阅读次数:
265
option for target 'target 1' 中:
第3选项output: select folder for objects :此选项是选择编译时产生的以希望文件,点击选择路径,不然这些文件就会生成并保存在和项目文件.prov 同个文件下,导致项目文件不好找。
第4选项listing:也是同第3选项同样原理。
第6选项c/c++:在include paths 设置h文件路...
分类:
其他好文 时间:
2014-05-20 16:17:17
阅读次数:
383
什么是Java当中的软件包?为什么要使用软件包?如何给一个类打包?//将类放置到一个包中,需要使用package“包名”//打包
编译的方法 javac -d . Test.java//出现错误:编码GBK的不可映射字符 javac -encoding UTF-8 -d .
Test.java .....
分类:
移动开发 时间:
2014-05-20 07:51:04
阅读次数:
353
创建测试表:D:\app\product\11.1.0\db_1>sqlplus "/as
sysdba"SQL*Plus: Release 11.1.0.7.0 - Production on 星期日 5月 18 17:12:06
2014Copyright (c) 1982, 2008, Ora...
分类:
数据库 时间:
2014-05-19 13:23:49
阅读次数:
473