当前位置:网站首页>【渣渣彭-错误记录】专门记录本人的撒币问题
【渣渣彭-错误记录】专门记录本人的撒币问题
2022-08-07 16:04:00 【慷仔】
编程问题记录
1、C/CPP系列语言
1.1、assert()断言不能够随便使用
- 描述:我们经常使用assert()断言操作去进行调试和正确性判断,但是我们不能够把任何的操作都放入到assert()断言中去。
- 理由:我们只能够放入判断语句进入,不能够放入执行语句进去,因为assert(代码1)只有在Debug模式下才会编译代码1,Release模式将会不执行代码1.
- 例子:
int i = 10;
assert(i == 0);//可以使用
assert((i = i - i)?1:0);//不可以使用,因为这是一个执行语句
printf("i=%d\n:, i);//那么这样将会存在的现象是:Debug下输出i=0,Release下输出i=10
后话
后续将会把困扰自己的问题和一些注意点统统放在上面,就算是给自己当做笔记了。
持续更新,请多多关注和收藏点赞。
边栏推荐
- 小技巧——postman get&&post请求的使用方式
- LeetCode quiz series -- 678. Valid bracket strings
- mysql5.7安装和配置教程(图文超详细版)
- win10 uwp ContentDialog 点确定不关闭
- win10 uwp InkCanvas控件数据绑定
- ceph cluster
- Xiao sir___Interview employment class__Non-technical interview questions
- JVM
- 网页模板 pug 基本语法
- leetcode 485: Maximum number of consecutive 1s
猜你喜欢

JWT的创建

深入浅出边缘云 | 6. 监控与遥测

LeetCode daily two 02: the best time to buy stocks (1200)

leetcode:636. 函数的独占时间【栈模拟】

Browser working principle and practical study notes (1) Browser from a macro perspective

【21天学习挑战赛】双向链表的数据操作

分库分表和分布式acp和分布式事务

JVM

65:第五章:开发admin管理服务:18:开发【根据条件,分页查询用户列表,接口】;(使用了Converter转换器,把url中String格式的日期,转成Date格式的;)
![[Paper Translation and Interpretation (2)] LOF: Identifying Density-Based Local Outliers Intensive Reading](/img/08/223acf82bbb4c3652036a9f9c114b6.png)
[Paper Translation and Interpretation (2)] LOF: Identifying Density-Based Local Outliers Intensive Reading
随机推荐
函数栈简述
Short note_Altium Designer layout and routing reuse of the same module
手机办理股票账户安全吗 股票账户开户
Browser working principle and practical study notes (1) Browser from a macro perspective
实用代码使用浏览器添加书签方式来一键获取网页所需内容链接技巧分享
Chapter 3 Mobile Terminal - Elementary Classroom Online Education System Effect Demonstration and Technical Preparation
熟练使用几个重要的内置函数
文件管理:文件存储空间管理
【IROS 2019】RangeNet++: 快速准确的LiDAR语义分割
win10 uwp ContentDialog 点确定不关闭
from . import XXX
【经验贴-leetcode报错没头绪时的小妙招(非会员)】
简单的网页制作期末作业——电影泰坦尼克号(4页)
labelme安装
微信小程序——点击事件 bindtap和catchtap的区别
SWM32系列教程7-I2C及其应用
MySQL5.7.35 installation and configuration tutorial [super detailed installation tutorial]
MySQL5.7 installation and configuration tutorial (graphics and text super detailed version)
jmter中函数助手的使用
LeetCode Daily Question 02: There are duplicate elements (1200 questions in each)