If statement inside If statement condition

后端 未结 0 1103
盖世英雄少女心
盖世英雄少女心 2020-11-30 01:48

In other words, is there a better way to do this (without writing DoSomething(); twice):

int a, b;

if (a > 0)
{
    a--;
    DoSomething()
}
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题