I came across code like this:
What does the stand-alone "{" and "}" mean? It seems that we don't need the {} pair, and the code can still run correctly.Code:... in middle of some code... if (some_condition){ do something; {//what does it mean? string clear_cmd = strfmt( "rm -rf %s/*",data_path.c_str() ); system( clear_cmd.c_str() ); }//what does it mean? do something else; }//end if