选择复合形式声明变量还是逐个形式声明变量

int arg1 = 0;

int arg2 = 0;

bool bIsOpen = false;

char str[] = "";

 

int copretionFunction(bool isOK)

{

if(isOK == false)

{

return 0;

}

arg1 = 17;

arg2 = 19;

int temp retNum = 0;

if((arg1 >= 0 && arg2 >= 0) || (arg1 == 17))

{

int temp = arg2 - arg1;

retNum = arg1 * (temp * 6);

}

return retNum;

}

posted on 2024-08-09 18:31  草丛有头猪  阅读(4)  评论(0编辑  收藏  举报

导航