什么是如果,否则,和else如果有什么区别? [英] What are the differences between if, else, and else if?

查看:286
本文介绍了什么是如果,否则,和else如果有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图辨别

之间的区别

 如果
其他
否则,如果

当你使用它们,何时不?

我有一吨的情况下的家庭作业,我运行到code错误,由于不知道每一个之间的差异。

有人可以定义如何使用这些?


解决方案

  ** **如果你感到困惑
 阅读C#规范
** ELSE IF **你是那种迷茫
 看了一些书
**其他**
 一切都应该确定。

:)

I am trying to discern the difference between

if 
else 
else if

When do you use them and when not?

I have a homework assignment with a ton of instances and I am running into code error due to not knowing the differences between each.

Can someone please define how to use these?

解决方案

**IF** you are confused
 read the c# spec
**ELSE IF** you are kind of confused
 read some books
**ELSE**
 everything should be OK.

:)

这篇关于什么是如果,否则,和else如果有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆