当前位置:网站首页>0和1的歧义问题
0和1的歧义问题
2022-06-29 01:27:00 【fqbqrr】
0与1有两种表示意思,他们顺序不同,意思刚好相反.1,0/1表示顺序,按顺序的,0为第1个,1为第2个,这是按顺序.2,0/1表示真假,0为假,1为真.他们刚好容易造成歧义问题.
假设有a,b有项内容,如果按顺序,则是a为0,b为1.表示a是第1个,b是第2个.
而如果错误理解成按真假,则变成a为假,b为真.刚好a在第1个,却变成了假!
所以,这非常重要,一定要小心该歧义.
我们可以通过在注释中标记按顺序/按真假来消除这个0/1歧义.
边栏推荐
- be based on. NETCORE development blog project starblog - (13) add friendship link function
- 【火灾检测】基于matlab GUI森林火灾检测系统(带面板)【含Matlab源码 1921期】
- Kuboardv3与监控套件安装
- 4276. 擅长C
- 4276. good at C
- Share the code technology points and software usage of socket multi client communication
- 流媒体集群应用与配置:如何在一台服务器部署多个EasyCVR?
- Misunderstanding of innovation by enterprise and it leaders
- Basic use of flask Sqlalchemy
- 最新版CorelDRAW Technical Suite2022
猜你喜欢

What kind of life is a tester with a monthly salary of over 10000?

Linux7 (centos7) setting oracle11 boot auto start

Depth first search to realize the problem of catching cattle

Connected to rainwater series problems

PAT甲级真题1165

With this tool, automatic identification and verification code is no longer a problem

EasyCVR播放视频出现卡顿花屏时如何解决?

Rasa dialogue robot helpdesk (V)

TypeScript(5)类、继承、多态

PR FAQ: how to retrieve accidentally deleted video and audio in PR?
随机推荐
Exclusive analysis | about resume and interview
TypeScript(4)接口
立创eda学习笔记:铺铜死区?孤岛?死铜?
[image processing] image curve adjustment system based on MATLAB
Design and development of VB mine sweeping game
Noip2006-2018 improvement group preliminary test questions improvement procedure questions csp-s 2019 2020 preliminary test questions improvement procedure questions
[js practice every m days] JS export object analysis based on libcef application (steam)
有了这款工具,自动化识别验证码再也不是问题
Day 7 scripts and special effects
Connected to rainwater series problems
Latest version of CorelDRAW technical suite2022
[temperature detection] thermal infrared image temperature detection system based on Matlab GUI [including Matlab source code 1920]
最大路径和问题(摘樱桃问题)
Statistical learning method (3/22) k-nearest neighbor method
TypeScript(7)泛型
【图像处理】基于matlab实现图像曲线调整系统
DO280分配持久性存储
Code repetition of reinforcement learning based parameters adaptation method for particlewarn optimization
[image detection] recognition of the front and back of a coin based on texture features with matlab code attached
198. house raiding