Код:
for I := 0 to first.Count-1 do
if second.IndexOf(first[i])<0 then
third.Add(first[i]);
for I := 0 to second.Count-1 do
if first.IndexOf(second[i])<0 then
third.Add(second[i]);
first, second - исходные
third - "список В".
З.Ы. Аристарх, сколько выпил?
__________________
Оставайтесь хорошими людьми...
VK id2634397, ds [at] phoenix [dot] dj
|