It s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
我只读了一部法典,它不仅汇编了,而且带来了预期结果(X是分类值):
int y = (int)(0.5 * x * x + + + 0.6 * x + 1.2);
我只想说什么发生,我必须说这是一个有趣的经营者问题。 如果不汇编该方案,以下业务的结果是什么?
int a = 1;
int b = 2;
int z = a + + + b;
int z1 = a + - + b;
int z2 = a + - - b;
int z3 = a - - + b;
int z4 = a - - - b;
int z5 = a +- b;
我仍然有一个问题,尽管:标准是否提供这种结果,还是具体汇编?
Explanation: Because the + and - operators have spaces between them, the "+ + +" sequence is not compiled as "++ +", but as unary operators on the right member. So
int y = (int)(0.5 * x * x + + + 0.6 * x + 1.2);
实际:
int y = (int)(0.5 * x * x + 0.6 * x + 1.2);
这是预期的结果。
因此,
z = a + + + b = a + + (+b) = a + (+b) = a + b = 3;
z1 = a + - + b = a + - (+b) = a + (-b) = a - b = -1;
z2 = a + - - b = a + - (-b) = a + (+b) = a + b = 3;
z3 = a - - + b = a - - (+b) = a - (-b) = a + b = 3;
z4 = a - - - b = a - - (-b) = a - (+b) = a - b = -1;
z5 = a +- b = a + (-b) = a - b = -1;