找程序的错和不足: int test(char *value,int value_len,int flag) { char temp_buf[BUF_SIZE]; sprintf(temp_buf,value); char temp_new_buf=new char[value_len]; if(flag) { strcat(temp_buf,"flag is true"); printf(temp_buf); return 1; } delete[] temp_new_buf; return 0; }