语句positive = -postIncrement;中那减号在语句中是什么意思?
解决方案 »
- 在C#里面用DIV做遮罩层效果遇到问题
- 在winFrom中的DataGrid如何达到在列中添加按钮???? 急..
- 关于Array.CreateInstance的问题
- Datagrid 的排序问题!!!!!!!!
- 10分问:用C#操作xml要引用哪个命名空间啊?在线等
- 求救关于数组引用的问题
- 网页难题,动态生成N个TEXTBOX后怎么取出TEXT值 开发环境(WIN2003+VS2005+Sql2005)
- 用谷歌浏览器获取JSON数据地址,如何使用,谢谢
- 请教一个C#处理xml的问题
- C#如何调用Com接口函数中参数含有optional
- 点击按钮过滤掉 richtextbox1与richtextbox2中相同的文本内容。
- 如何提取combobox中的选中项值
还有一个名词:绝对值
class Unary {
public static void Main() {
int unary = 0;
int preIncrement;
int preDecrement;
int postIncrement;
int postDecrement;
int positive;
int negative;
sbyte bitNot;
bool logNot;
preIncrement = ++unary;
Console.WriteLine("Pre-Increment: {0}", preIncrement);
preDecrement = --unary;
Console.WriteLine("Pre-Decrement: {0}", preDecrement);
postDecrement = unary--;
Console.WriteLine("Post-Decrement: {0}", postDecrement);
postIncrement = unary++;
Console.WriteLine("Post-Increment: {0}", postIncrement);
Console.WriteLine("Final Value of Unary: {0}", unary);
positive = -postIncrement;
Console.WriteLine("Positive: {0}", positive);
negative = +postIncrement;
Console.WriteLine("Negative: {0}", negative);
bitNot = 0;
bitNot = (sbyte)(~bitNot);
Console.WriteLine("Bitwise Not: {0}", bitNot);
logNot = false;
logNot = !logNot;
Console.WriteLine("Logical Not: {0}", logNot);
}
}