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

C++核心准则原文翻译

专栏作者
465
文章
264087
阅读量
44
订阅数
自学鸿蒙应用开发(37)- PageSlider组件
PageSlider是用于页面之间切换的组件,它通过响应滑动事件完成页面间的切换。
面向对象思考
2021-04-22
5861
自学鸿蒙应用开发(16)- ListContainer
在layout目录下的xml文件中创建ListContainer布局,将其命名为page_listcontainer.xml。
面向对象思考
2021-01-13
6440
C++核心准则​NL.17:使用K&R风格派生的布局
This is the original C and C++ layout. It preserves vertical space well. It distinguishes different language constructs (such as functions and classes) well.
面向对象思考
2020-12-15
6290
C++核心准则​NL.15:谨慎使用空格
Too much space makes the text larger and distracts.
面向对象思考
2020-12-15
4450
C++核心准则​NR.1:不要坚持所有声明都应该放在函数顶部
The "all declarations on top" rule is a legacy of old programming languages that didn't allow initialization of variables and constants after a statement. This leads to longer programs and more errors caused by uninitialized and wrongly initialized variables.
面向对象思考
2020-11-10
3900
关于C++异常,你必须知道的
本文是作者翻译过C++之父Bjarne Stroustrup的技术文章C++核心准则中有关C++中异常的文章之后的总结,希望读者通过本文可以对C++异常有一个全面,快速的了解:
面向对象思考
2020-10-30
5640
C++核心准则:SF.12:使用双引号形式的#include语句包含相对路径中的文件,用角括号形式包含所有其他位置的文件​
SF.12:使用双引号形式的#include语句包含相对路径中的文件,用角括号形式包含所有其他位置的文件
面向对象思考
2020-10-30
2.2K0
C++核心准则SF.1:如果你的项目没有正在遵从的其他习惯,为代码文件使用.cpp后缀,为接口文件使用.h后缀
SF.1: Use a .cpp suffix for code files and .h for interface files if your project doesn't already follow another convention
面向对象思考
2020-10-10
5680
C++核心准则​CPL.2:如果你必须使用C,使用C和C++的共同子集,并且使用C++编译器编译C代码
CPL.2: If you must use C, use the common subset of C and C++, and compile the C code as C++
面向对象思考
2020-10-10
6620
C++核心准则CP.2:避免数据竞争​
Unless you do, nothing is guaranteed to work and subtle errors will persist.
面向对象思考
2020-07-02
4650
C++核心准则ES.79:使用default处理一般case
Code clarity. Improved opportunities for error detection.
面向对象思考
2020-06-09
2980
C++核心准则ES.48:避免使用类型转换
Casts are a well-known source of errors. Make some optimizations unreliable.
面向对象思考
2020-05-25
6020
C++核心准则ES.43: 避免在表达式中使用无定义的运算次序
You have no idea what such code does. Portability. Even if it does something sensible for you, it may do something different on another compiler (e.g., the next release of your compiler) or with a different optimizer setting.
面向对象思考
2020-05-15
4600
使用30元开发板UNO D1 R32构筑物联网开发环境
用厂家的话来讲,ESP32 采用 40 nm 工艺制成,具有最佳的功耗性能、射频性能、稳定性、通用性和可靠性,适用于各种应用场景和不同功耗需求。以下是ESP32的主要参数:
面向对象思考
2020-03-25
1.7K0
使用Eclipse构建树莓派远程调试环境
在Ubuntu主机端使用gdb-multiarch实现远程调试之后,接下来使用说明在Eclipse中实现远程调试的方法。
面向对象思考
2020-03-25
9050
用VisualStudio2019预览版体验C++20新功能
最近的连载中有很多内容涉及到C++20中的内容,例如concept等。但是由于C++20还属于新生事物,不仅可以参考的例子少,找到一个可以体验C++20功能的开发环境都困难。本文介绍使用微软VisualStudio2019预览版体验C++20新特性的方法。
面向对象思考
2020-03-25
6171
C++核心准则编译边学-F.46 main函数的返回值类型是整数
It's a language rule, but violated through "language extensions" so often that it is worth mentioning. Declaring main (the one global main of a program) void limits portability.
面向对象思考
2020-03-25
6750
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档