程序猿
程序猿
int类型的正负数转换
int aid = -this.id; 不能直接转 必须先赋值给一个变量
int c = this.id;
int a = c * (-1);
this.id = a;
【推广】
免费学中医,健康全家人
原文地址:https://www.cnblogs.com/superMay/p/5749620.html
推荐文章
【UGUI】Canvas和Rect Transform
【leetcode】Roman to Integer
【leetcode】Valid Sudoku
【leetcode】Sort List
【leetcode】Majority Element
【leetcode】String to Integer (atoi)
【leetcode】Merge Sorted Array
【leetcode】Trapping Rain Water
【leetcode】Search in Rotated Sorted Array II
poj 2777 AND hdu 5316 线段树
hdu 1796 容斥原理(dfs)
hdu 5326 dfs
hdu 5316 线段树
hdu 5317 筛法+前缀和+暴力
zoj 3882 博弈
poj 2253 dijstra变形
hdu 3823 线性筛法
hdu 3335 最大独立集
poj 3061 尺取法或二分
【尺取】HDU String
【尺取】HDU Problem Killer
【尺取或dp】codeforces C. An impassioned circulation of affection
【搜索】codeforces C. The Tag Game
【数学】codeforces B. The Golden Age
【dfs+理解题意+构造】【待重做】codeforces E. Ice cream coloring
【贪心】codeforces D. Minimum number of steps
【数学】codeforces A. Success Rate
【二分+交互】codeforces B. Glad to see you!
【组合 数学】codeforces C. Do you want a date?
JavaScript实现快速排序