最笨的办法当然是二层嵌套循环,但觉得应该有更好的方法,但是着实想不出来,想听听大家的意见,大家帮帮小弟
i.e
string[] A={"X","Y","Z","W"};
string[] B={"X","E","Z","U","V"};
只要发现B中有一个A的元素就可以
最笨的办法当然是二层嵌套循环,但觉得应该有更好的方法,但是着实想不出来,想听听大家的意见,大家帮帮小弟
i.e
string[] A={"X","Y","Z","W"};
string[] B={"X","E","Z","U","V"};
只要发现B中有一个A的元素就可以