#include#include #include using namespace std;using namespace boost::property_tree;//其实有点像std::list,自己可以构造一个任何类型的节点插进去,特别数组类型,用法太灵活了int main(){ std...
分类:
Web程序 时间:
2014-07-22 23:22:57
阅读次数:
257
#include#include #include #include #include //解析下面的json//pairint main(){ using namespace boost::property_tree; std::string strJson = "{ \"people...
分类:
Web程序 时间:
2014-07-22 22:59:52
阅读次数:
230
iOS本地化其实是一件很简单的事情(Xcode很强大),网上也有很多教程。但是作为初学者,还是会有些地方叫人疑惑。本地化是程序根据系统本地的International设置(或让用户自己选择本地化语言的区域)改变自身展示文字、图片或xib文件的一种方式。iOS针对所有的资源文件(包括xib, stor...
分类:
移动开发 时间:
2014-07-22 22:47:55
阅读次数:
207
xcode 5 好像弃用了GDB .而默认使用苹果自己开发的调试工具 LLDB.http://iosre.com/forum.php?mod=viewthread&tid=52 LLDBhttp://blog.sina.com.cn/s/blog_489ab04e0100wj3x.html GDB
分类:
数据库 时间:
2014-07-22 22:41:53
阅读次数:
226
core data在给我们带来方便的同时,也给我们带来一个小小的困扰,就是如何实时获取调试信息,并打印? 答案很简单,只要我们在xcode中做一个小小的设置。 1. 在 Xcode, 在 Product menu 下 选中 Edit Scheme. 2. ...
分类:
其他好文 时间:
2014-07-22 22:38:12
阅读次数:
207
1./Users/你的用户名/Library/Application Support/iPhone Simulator/模拟器版本号/Applications/Xcode所生成的某项目的编号/Library/Caches/Snapshots/项目名2./Users/你的用户名/Library/App...
分类:
其他好文 时间:
2014-07-22 00:03:35
阅读次数:
536
出现error的过程:在运行另外一个xcode项目重置了code sign,回到原来的项目的时候出现这个error
修复方法:
targe-build settings-code signing identity-choose iOS Developer
然后Provision File选择对应的file
参考链接:
https://developer.apple.com/leg...
分类:
移动开发 时间:
2014-07-21 23:30:01
阅读次数:
322
下载运行一个demo时出现“The current deployment target does not support automated __weak references”这个问题,找了下方法:
4.2以前版本的XCode都不支持ARC。
对操作系统也有要求:Mac OS X v10.6 或 v10.7 (64-bit applications), iOS4或iOS5。注意:其中...
分类:
其他好文 时间:
2014-07-21 23:29:20
阅读次数:
321
01.#include
02.#include
03.#include
04.
05.typedef std::list list_any;
06.
07.//关键部分:可以存放任意类型的对象
08.void fill_list(list_any& la)
09.{
10. la.push_back(1000)...
分类:
其他好文 时间:
2014-07-21 22:47:37
阅读次数:
249
shared_ptr智能指针的意思即:boost::shared_ptr是可以智能的管理动态分配的内存资源,几个智能指针可以同时共享一个动态分配的内存的所有权。
下面我们通过一个例子来学习一下它的用法:
注 :使用shared_ptr智能指针,要加入#include 头文件
class example
{
public:
~example() { std::cout "...
分类:
其他好文 时间:
2014-07-21 22:43:47
阅读次数:
297