【发布时间】:2019-06-12 07:30:43
【问题描述】:
string[] one={"my", "5", "two", "array", "hey?", "good", "day"};
string[] two={"hello!", "how", "good", "day", "us", "very", "two", "hard", "learn", "it"};
例如:我有这些上面的数组,我想比较它们,比较后从 string[] 两个中删除相同的值。所以,当我编译代码时,我的数组会是这样的;
string[] one={"my", "5", "two", "array", "hey?", "good", "day"};
string[] two={"hello!", "how", "us", "very", "hard", "learn", "it"};
注意:我无法对此产生任何想法,抱歉。
【问题讨论】:
-
所以你只想修改数组
two? -
是的,先生。我只想修改数组二。
标签: c# arrays compare intersection