惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Martin Fowler
Martin Fowler
J
Java Code Geeks
The GitHub Blog
The GitHub Blog
C
Check Point Blog
H
Help Net Security
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
P
Proofpoint News Feed
V
Visual Studio Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Vercel News
Vercel News
S
SegmentFault 最新的问题
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
博客园_首页
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏

博客园 - 华威

Action中的变量无需声明 ascx中javascript事件没有激活 "does not esixt in the current content" error Sql Server中Select @Value和Select Value的区别 Ajax中使用Get而出现的古怪现象 FireFox对代码的要求比IE要严 ASP.NET的TextBox控件宽度和Columns属性有关 从当前窗口返回原窗口打开新页面的JavaScript代码 Page.Validate()方法 decimal在存储过程和C#中的应用 JavaScript函数的参数列表的长度不固定 SQL中char和varchar类型 HyperLink的UnLoad事件 改变了系统的地区设置,但是C#中的DateTime不是立刻生效的 在DataGrid里面取特殊字段值 事件两次激发? DataList里面的事件初始化 ajax 关于SqlDataReader.Read()方法
C#中问号的作用
华威 · 2007-08-01 · via 博客园 - 华威

看个例子就全明白了:

int ystep;
if(y0<y1)
{
ystep = 1;
}
else
{
ystep = -1;
}
上面的一大段编码等价于下面一行
int ystep = y0 < y1 ? 1 : -1;

posted on 2007-08-01 18:57  华威  阅读(1464)  评论(0)    收藏  举报

刷新页面返回顶部