赞
踩
static double[] iArr = new double[10] { 1,2,3,4,5,6,7,8,9,10 };
static Stack stack = new Stack();
static double tempNum = 0;
static double a = 11;
static void Main(string[] args)
{
for (int i = 0; i < iArr.Length; i++)
{
if (iArr[i] == a)
{
continue;
}
if (iArr[i] > a)
{
continue;
}
stack.Clear();
stack.Push(iArr[i]);
Func(i, a - iArr[i]);
}
}
private static void Func(int i, double iValue)
{
for (int j = i + 1; j < iArr.Length; j++)
{
if (iArr[j] > iValue)
{
continue;
}
else if (iValue == iArr[j])
{
stack.Push(iArr[j]);
foreach (int ss
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。