int类型的正负数转换

int aid = -this.id; 不能直接转 必须先赋值给一个变量
int c = this.id;
int a = c * (-1);
this.id = a;
posted @ 2016-08-08 15:51  小A爱吧  阅读(2920)  评论(0编辑  收藏  举报