首页
学习
活动
专区
工具
TVP
发布

C++核心准则原文翻译

专栏成员
465
文章
278866
阅读量
44
订阅数
自学鸿蒙应用开发(27)- 自定义ListDialog
这个效果过于简陋,无法用于实际的产品开发。本文介绍如何定制自己的ListDialog。还是先看演示视频:
面向对象思考
2021-03-16
3120
自学鸿蒙应用开发(27)- 默认的ListDialog
对话框的用途除了表示信息供用户判断之外,还可以用来让用户从多个选项中选择自己需要的内容,这时就该ListDialog出场了:
面向对象思考
2021-02-25
3700
自学鸿蒙应用开发(26)- 自定义CommonDialog
上一篇文章中说过,直接使用鸿蒙系统中的CommonDialog大致是下面的效果:
面向对象思考
2021-02-25
7630
自学鸿蒙应用开发(25)- 基本的CommonDialog
对话框是应用程序的主要输入手段之一,但是遗憾的是目前鸿蒙的开发网站上只有ToastDialog用法,其他类型的对话框则只能参考为数不多的英文文档。
面向对象思考
2021-02-25
7050
C++核心准则​​SL.str.1:使用std::string管理字符序列
string correctly handles allocation, ownership, copying, gradual expansion, and offers a variety of useful operations.
面向对象思考
2020-10-30
4790
C++核心准则CP.44:记得为lock_guards和unique_locks命名
An unnamed local objects is a temporary that immediately goes out of scope.
面向对象思考
2020-07-16
4260
C++核心准则Per.7:设计要为优化做准备
Because we often need to optimize the initial design. Because a design that ignores the possibility of later improvement is hard to change.
面向对象思考
2020-06-24
4250
C++核心准则Per.5,6 关于性能的误解
Low-level code sometimes inhibits optimizations. Optimizers sometimes do marvels with high-level code.
面向对象思考
2020-06-24
3320
C++核心准则ES.20: 保证所有对象被初始化
Avoid used-before-set errors and their associated undefined behavior. Avoid problems with comprehension of complex initialization. Simplify refactoring.
面向对象思考
2020-04-26
4880
C++核心准则R.36: 使用const shared_ptr<widget>&类型参数表示可能持有一个对象的引用计数
R.36: 使用const shared_ptr<widget>&类型参数表示可能持有一个对象的引用计数。
面向对象思考
2020-04-14
1K0
C++核心准则R.33: 表达函数会重置widget时,使用unique_ptr<widget>&​作参数
R.33: 表达函数会重置widget时,使用unique_ptr<widget>&作参数。
面向对象思考
2020-04-14
4910
C++核心准则R.32: 通过​unique_ptr<widget>类型参数表示函数试图获取widget的所有权
R.32: 通过unique_ptr<widget>类型参数表示函数试图获取widget的所有权
面向对象思考
2020-04-14
5740
C++核心准则R.31:如果需要实现标准库以外的智能指针,遵照标准库中的基本模式​
The rules in the following section also work for other kinds of third-party and custom smart pointers and are very useful for diagnosing common smart pointer errors that cause performance and correctness problems. You want the rules to work on all the smart pointers you use.
面向对象思考
2020-04-14
3990
没有更多了
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档