什么是波浪在离pression是什么意思? [英] What does the tilde mean in an expression?
本文介绍了什么是波浪在离pression是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
什么是在C#枚举符号(〜)?
我发现code对一个这的MSDN页面。
I found the following bit of code on a this MSDN page.
(((Width * Planes * BitCount + 31) & ~31) / 8) * abs(Height)
这确实编译C#Visual Studio 2010中究竟什么是波浪号在31号前面的〜做什么?我从来没有见过这样的语法在之前的前pression。
This does indeed compile in C# visual studio 2010. What exactly is the tilde "~" doing in front of the number 31? I've never seen this syntax in an expression before.
推荐答案
That is the bitwise complement operator, also known as bitwise negation.
这篇关于什么是波浪在离pression是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文