當前位置:編程學習大全網 - 電腦編程 - C#中*=是什麽意思?

C#中*=是什麽意思?

*號在計算機語言中表示乘號(乘法)的意思

balance *= interrestrate 意思就是說 balance = balance * interrestrate;

balance和interrestrate都是變量,比如balance的值=1,interrestrate的值= 2

balance *= interrestRate;就等同於 balance = balance x interrestRate 那麽最後執行的結果balance = 2

  • 上一篇:女生26了找不到工作還讓人看不起有人說我找不到工作是自己活該怎麽辦
  • 下一篇:PLC控制邏輯和控制方法
  • copyright 2024編程學習大全網