帮我看看这个字符串比较程序!
for(int i=0;i<Form_Main->Memo2->Lines->Count;i++){
for(int j=0;j<KeyName->Count;j++)
{
if(Form_Main->Memo2->Lines->Strings[i]== KeyName->Strings[j] )
{
break;
}
else if(Form_Main->Memo2->Lines->Strings[i]!= KeyName->Strings[j] )
{
NewItem = NULL;
NewItem = Form_Main->acListView2->Items->Add();
NewItem->Caption = Form_Main->Memo2->Lines->Strings[i];
Form_Main->Memo_patch->Lines->Add(KeyName->Strings[i]);
continue;
}
怎么把输出结果变为一行啊?