Condition statements causing different outputs depending on if and how it is initialised

前端 未结 0 540
广开言路
广开言路 2020-12-06 00:57

The following code:

int size = str1.size () - i;
if (size <= 0)
{
    str2 = 0;
}

When changed to this:

if (str1.size () -          


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