首页 > 文档 > *= (multiply assign)
2017
07-21

*= (multiply assign)

名称:*= (multiply assign)

 

例子:

int a = 5;
int b = 2;
a *= b;  // Sets ‘a’ to 10

 

描述:

Combines multiplication with assignment. The expression a *= b is equivalent to a = a * b.

结合乘法与赋值。 表达式a * = b等效于a = a * b。

 

语法:

value1 *= value2

 

参数:

value1 int or float
value2 any numerical value the same datatype as value1    任何与value1相同数据类型的数值

 

相关:

= (assign)
* (multiply)



最后编辑:
作者:Hewes
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。