语句positive = -postIncrement;中那减号在语句中是什么意思?
解决方案 »
- 问题请教
- 紧急求助一个C#弹出对话框的问题,对话框无法显示内容。
- 关于word
- VS2005的程序集里面使用带参数存储过
- 高手帮我看下读取路径问题
- 急......求类似QQ窗体的源码或者构件
- 请有实际开发经验的谈谈.dll文件的使用
- 窗体上的label的text中有个字符(・),label的的字体为Arial,显示的时候为乱码,谁知道该怎么转换?(字体必须为Arial)
- 怎样在DATASET中倒入符合格式的文本文件数据?
- 如何用c#得到本机运行的windows的版本号?以及当前的用户id?
- 点击按钮过滤掉 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);
}
}