//reference count, copy-on-write #include #include #include #include using namespace std; class Dog { string nm; int refcount; Dog(const string& name)... ...
分类:
编程语言 时间:
2017-07-29 15:18:57
阅读次数:
254
用char*管理String类的内存,new动态分配,在析构函数中delete char*指向的new出来的内存,一个string类需要实现那些接口可参考标准库里的string: http://www.cplusplus.com/reference/string/string/ 实现思路是:在创建S ...
分类:
其他好文 时间:
2017-07-29 10:12:33
阅读次数:
187
Spring Boot 公共配置,配置 application.properties/application.yml 文件中。 摘自:http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-pr ...
分类:
编程语言 时间:
2017-07-28 18:21:47
阅读次数:
230
之前,看到关于blcok外使用__weak弱化对象,blcok内再用 __strong 强引用的原因: 保证对象在blcok中不会被提前释放,当blcok执行完之后,自动释放该对象。 今天看了一下__weak修饰的对象,在被使用的时候,每次使用都会被注册到autoreleasepool中,例如: { ...
分类:
其他好文 时间:
2017-07-28 11:09:09
阅读次数:
158
(下面是我参考各个网页的教程,综合起来的) 1.下载、安装 官方下载网址:http://www.sublimetext.com/3 选择适应电脑系统的版本。 比如我的是Windows,本篇文章所述的都是在Windows下安装与使用:安装时,注意勾选Add to explorer context me ...
分类:
其他好文 时间:
2017-07-28 11:06:22
阅读次数:
159
Xcode更新到7.3后会出现NSObject+MJProperty.h报Cannot create __weak reference in file using manual reference counting错误信息。 解决的办法:在Build Settings >Aplle LLVM7.1 ...
分类:
其他好文 时间:
2017-07-27 12:47:49
阅读次数:
124
原文链接 : iOS Concurrency: Getting Started with NSOperation and Dispatch Queues 原文作者 : Ghareeb Hossam 译文出自 : APPCODA 译者 : kmyhy 並行編程永遠是 iOS 開發中的重要內容。同時也是 ...
分类:
移动开发 时间:
2017-07-27 09:42:24
阅读次数:
181
Java是基于C++的,但Java是一种更纯粹的面向对象程序设计语言,和C++不同的是,Java只支持面向对象编程,因此Java的编程风格也是纯OOP风格的,即一切都是类,所有事情在类对象中完成。 在Java中,使用引用来操纵对象,在Java编程思想的第四版中,使用的术语是“引用(reference ...
分类:
编程语言 时间:
2017-07-26 23:46:14
阅读次数:
225
参考资料: https://linux.cn/article-7209-1.html https://msdn.microsoft.com/en-us/commandline/wsl/reference 1、确认“开发人员模式”为启用状态 依次在“设置”-“更新与安全”-“针对开发人员”选项中,启用 ...
Simplified Business Workplace -> Workflow Inbox in SAP R/3 By Anirban Bhattacharjee, KPIT Cummins and Infosystems from Link Purpose: The purpose of th ...
分类:
其他好文 时间:
2017-07-26 12:29:27
阅读次数:
236