在C#中,比较两个数组的不同值.输出出来对于日常.NET编程比较实用
来源:互联网 发布:ubuntu 安装povray 编辑:程序博客网 时间:2024/06/10 17:22
static void Main(string[] args)
{
String strName = "";
Dictionary<int, int> map = new Dictionary<int, int>();
int[] ch2 = { 2, 32, 33, 44, 12 };
for (int i = 0; i < ch2.Length; ++i)
{
map.Add(ch2[i], 0);
}
int[] ch1 = { 1, 2, 3, 4, 5, 6, 7, 8 };
for (int i = 0; i < ch1.Length; ++i)
{
if (!map.ContainsKey(ch1[i]))
{
strName += ch1[i].ToString() + ",";
}
}
Console.WriteLine("不在ch2中:{0}", strName);
Console.ReadLine();
}
- 在C#中,比较两个数组的不同值.输出出来对于日常.NET编程比较实用
- 比较两个数组中不同的值
- C#比较两个数组的不同
- 比较两个数组中不同的数
- 在C#中如何比较两个byte[]数组相等
- 在C#中如何比较两个byte[]数组相等
- C#两个数组比较
- js比较两个数组对象,取出不同的值
- 比较两个数组中相同元素并打印出来
- C#中比较两个值型一维数组变量是否值相等
- C#中比较两个值型一维数组变量是否值相等
- C#中比较两个值型一维数组变量是否值相等
- 比较两个文档中元素的不同
- c#比较两个数组的差异
- 两个数组的比较
- php中两个数组的比较
- ios 比较两个数组的数据的不同
- php中比较两个数组内容,相同部分保留,不同的加上
- Professional Community Server Themes
- Beginning Spring 2: From Novice to Professional
- The Shellcoder's Handbook: Discovering and Exploiting Security Holes
- Beginning PL/SQL: From Novice to Professional
- Ultraedit语法高亮显示
- 在C#中,比较两个数组的不同值.输出出来对于日常.NET编程比较实用
- Virtual Vixens: 3D Character Modeling and Scene Placement
- SEPG 工作完成
- Creating Mobile Games: Using Java ME Platform to Put the Fun into Your Mobile Device and Cell Phone
- 递归的使用——关于括号排列(分别使用Java和C++算法实现)
- Data Mining Using SAS Enterprise Miner
- new(nothrow)
- Patterns for Performance and Operability: Building and Testing Enterprise Software
- Practical JBoss® Seam Projects