腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
C++核心准则原文翻译
专栏作者
举报
465
文章
263286
阅读量
44
订阅数
订阅专栏
申请加入专栏
全部文章
c++
编程算法
https
python
网络安全
gui
linux
es
ide
网站
打包
git
github
html
开源
function
http
express
容器
class
this
java
javascript
c#
jquery ui
access
serverless
缓存
小程序
node.js
code
object
对象存储
腾讯云测试服务
gcc
uml
微信
迁移
auto
behavior
default
error
handle
local
types
unsigned
其他
单片机
数据库
ubuntu
数据分析
腾讯云开发者社区
constructor
copy
crash
data
exception
exit
list
overflow
templates
thread
using
ios
xml
android
sql
eclipse
api
文件存储
vr 视频解决方案
underscore
面向对象编程
socket编程
arguments
bit
bug
constants
containers
declaration
embedded
goto
implementation
integer
io
it
member
modulo
nested
point
reference
scope
sizeof
time
ui
variables
void
布局
事件
通信
php
go
actionscript
css
jquery
json
硬件开发
unix
apache
图像处理
存储
ssh
数据结构
abstract
add
algorithm
allocation
arrays
block
break
button
case
center
character
cin
combinations
comments
compatibility
compilation
composition
constraints
container
core
cout
debug
delegates
diagram
division
effects
evaluation
file
flush
grammar
heap
image
implicit
indentation
input
int
interface
line
literals
lock
matrix
media
memory
message
monitor
mutex
namespaces
operators
output
overloading
parentheses
pointers
pool
private
project
protected
range
require
reset
rules
sharing
size
slice
src
surface
table
typedef
undefined
unique
view
zero
地图
定时器
接口
异步
语法
指针
搜索文章
搜索
搜索
关闭
自学鸿蒙应用开发(24)- 会计算的计算器(含源码)
腾讯云开发者社区
git
github
开源
前面的文章介绍过如何使用鸿蒙布局功能构建一个计算器界面,本文是那篇文章的续集。使用作者以前学习安卓开发时写的一个计算器程序,后来出版《实战Python设计模式》一书时又将其作为解释器模式的例子进行说明。首先看基本动作的演示视频:
面向对象思考
2021-02-25
916
0
C++核心准则Pro.lifetime:生命周期安全群组
c++
github
https
git
开源
Accessing through a pointer that doesn't point to anything is a major source of errors, and very hard to avoid in many traditional C or C++ styles of programming. For example, a pointer might be uninitialized, the nullptr, point beyond the range of an array, or to a deleted object.
面向对象思考
2020-11-11
411
0
C++核心准则E.19:如果无法选择适当的资源句柄,使用final_action表现清除处理
github
https
express
git
开源
finally is less verbose and harder to get wrong than try/catch.
面向对象思考
2020-08-10
514
0
C++核心准则E.25:如果不能抛出异常,模仿RAII方式进行资源管理
linux
github
对象存储
git
开源
Even without exceptions, RAII is usually the best and most systematic way of dealing with resources.
面向对象思考
2020-08-10
567
0
C++核心准则E.2:通过抛出异常来表明函数无法执行指定的任务
https
github
网络安全
git
开源
To make error handling systematic, robust, and non-repetitive.
面向对象思考
2020-07-28
422
0
C++核心准则CP.8:不要使用volatile关键字实现同步处理
c++
github
https
git
开源
CP.8: Don't try to use volatile for synchronization
面向对象思考
2020-07-03
341
0
C++核心准则ES.60:避免在资源管理函数之外使用new和delete
https
github
编程算法
网络安全
git
Direct resource management in application code is error-prone and tedious.
面向对象思考
2020-05-25
323
0
C++核心准则ES.23:优先使用{}初始化器语法
编程算法
github
https
git
开源
Prefer {}. The rules for {} initialization are simpler, more general, less ambiguous, and safer than for other forms of initialization.
面向对象思考
2020-04-28
536
0
C++核心准则R.4: 原始引用(T&)不包含所有权
https
github
网络安全
git
开源
There is nothing (in the C++ standard or in most code) to say otherwise and most raw references are non-owning. We want owners identified so that we can reliably and efficiently delete the objects pointed to by owning pointers.
面向对象思考
2020-03-26
470
0
Arduino环境使用TM1638扩展版
单片机
https
网络安全
github
git
TM1638深圳天微生产的一种带键盘扫描接口的LED(发光二极管显示器)驱动控制专用IC,内部集成有MCU数字接口、数据锁存器、LED驱动、键盘扫描等电路。使用TM1638的显式模块在市场上非常多,价格也很便宜。某宝10元左右就可以买到。例如下面的数码管+LED+按键模块(可以使用TM1638+led+key进行搜索):
面向对象思考
2020-03-25
2K
1
C++核心准则边译边学-序言
https
网络安全
github
git
开源
C++核心准则(C++ Core Guidelines)是由C++语言两位大神级的人物发表的有关C++语言编程的指导性文件,目前还处于不断修改和完善的过程中。从今天开始作者尝试翻译和学习该文档。
面向对象思考
2020-03-24
1.5K
0
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
立即发文
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档