当前位置:网站首页>关于if(x)和while(x)的解释
关于if(x)和while(x)的解释
2022-08-11 05:25:00 【Archimedes' boat】
if(x)就等价于if(x!=0)则执行语句,否则会跳出语句:
int x = 0,a;
if(x)
a=7;
else
a=9;此时输出a,a=9。
if(!x)相反,等价于if(x==0)则执行语句,否则会跳出语句:
int x1=1,x2=1,a;
if(!x1)
a=5;
else if(x2)
a=7;
else a=9;此时输出a,a=7。
while(x)则是当x>=0时候继续。
边栏推荐
- 梅科尔工作室-HarmonyOS应用开发第一次培训
- Joint 3D Instance Segmentation and Object Detection for Autonomous Driving
- vmware不可恢复错误vmui
- swin-transformer训练自己的数据集<自留>
- CMT2380F32模块开发8-Base Timer例程
- HTTP缓存机制详解
- 梅科尔工作室-Pr第一次培训笔记(安装及项目创建)
- CVPR2022——A VERSATILE MULTI-VIEW FRAMEWORK
- The selection points you need to know about the helmet identification system
- Diagnostic Log and Trace——dlt的编译和安装
猜你喜欢

如何快速转行做产品经理

mAPH - Waymo dataset

CMT2380F32模块开发10-高级定时器例程

Robust 3D Object Detection in Cold Weather Conditions

Maykel Studio - Django Web Application Framework + MySQL Database Third Training

梅科尔工作室-PR第三次培训笔记(效果与转场及插件使用)

10 个超好用的 DataGrip 快捷键,快加入收藏! | 实用技巧

Introduction of safety helmet wearing recognition system

关于安全帽识别系统,你需要知道的选择要点

weex入门踩坑
随机推荐
10 个超好用的 DataGrip 快捷键,快加入收藏! | 实用技巧
TAMNet: A loss-balanced multi-task model for simultaneous detection and segmentation
华为IOT设备消息上报和消息下发验证
Safety helmet identification system - escort for safe production
关于安全帽识别系统,你需要知道的选择要点
产品经理的基础知识
AI-based intelligent image recognition: 4 different industry applications
STM32 基于固件库的工程模板的建立
Joint 3D Instance Segmentation and Object Detection for Autonomous Driving
物联网基础知识学习
目标检测思维导图
Zhejiang University School of Software 2020 Guarantee Research Computer Real Question Practice
Hard hat identification
TAMNet:A loss-balanced multi-task model for simultaneous detection and segmentation
vmware不可恢复错误vmui
梅科尔工作室-DjangoWeb 应用框架+MySQL数据库第三次培训
Pay “Attention” to Adverse Weather
MSP430学习总结(二)——GPIO
物联网IOT 固件升级
Hardhat Recognition System - Solving Regulatory Conundrums