上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: std::string ="fsaffaf";char *source=&buf[0]; 阅读全文
posted @ 2014-05-16 10:02 anjsxz 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1. std::ifstream t("example.txt"); std::string str((std::istreambuf_iterator(t)), std::istreambuf_iterator());2void readfile(const std::stri... 阅读全文
posted @ 2014-05-16 09:29 anjsxz 阅读(157) 评论(0) 推荐(0) 编辑
摘要: pugixmlboost.loghttp://www.cryptopp.com/sqlitehttps://github.com/pmed/sqlitepphttps://github.com/neosmart/CppSQLitehttp://sourceforge.net/projects/wxsqlite/ 阅读全文
posted @ 2014-05-15 08:06 anjsxz 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://zh.highscore.de/cpp/boost/std::auto_ptr 析构的时候调用 delete 操作符来自动释放所包含的对象boost::scoped_ptr / boost::scoped_array不能传递它所包含的对象的所有权 到另一个作用域指针boost::shared_ptr /boost::shared_array在内部记录着引用到某个对象的共 ... 阅读全文
posted @ 2014-05-14 21:57 anjsxz 阅读(266) 评论(0) 推荐(0) 编辑
摘要: An intent service is similar to regular service, with two main exceptions: whatever work is to be done in onHandleIntent() will execute on a separate worker thread, and once it’s done, the service wil... 阅读全文
posted @ 2014-05-14 20:41 anjsxz 阅读(80) 评论(0) 推荐(0) 编辑
摘要: -(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{ returnUITableViewCellEditin... 阅读全文
posted @ 2014-05-13 15:04 anjsxz 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 要先std::sortstd::set_differencestd::set_union 阅读全文
posted @ 2014-05-13 13:20 anjsxz 阅读(303) 评论(0) 推荐(0) 编辑
摘要: UIImageView *v = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, _msg.contentF.size.width, _msg.contentF.size.height)]; [v setImageWithURL:[N... 阅读全文
posted @ 2014-05-13 11:08 anjsxz 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 多线程主要有三种方法:1.基本实现:NSthread ,NSObject =pthread_create() 及基本包装2.NSRunLoop ,本质上是一种多路复用加异步IO,也及reactor核心,或叫EventLoop3.NSOperation/GCD queue ,本质上是一种任务队列加线... 阅读全文
posted @ 2014-05-12 12:06 anjsxz 阅读(119) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install libstdc++6:i386 libncurses5:i386sudo apt-get install ia32-libs 阅读全文
posted @ 2014-05-12 07:22 anjsxz 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页