由买买提看人间百态

topics

全部话题 - 话题: lcount
(共0页)
p*****2
发帖数: 21240
1
来自主题: JobHunting版 - 我来出个题吧

我做了做要传两个值。
static void Find(StringBuilder sb, int n, int lcount,int rcount)
{
if (sb.Length == n)
{
Console.WriteLine(sb);
return;
}
if (lcount < n/2)
{
sb.Append('(');
Find(sb, n, lcount+1,rcount);
sb.Length--;
}
if (rcount {
sb.Append(')');
Find(sb, n, lcount,rcount+1);
sb.Length--;
}
}
static void All(... 阅读全帖
w****g
发帖数: 597
2
你可以写个EXCEL VBA代码小程序,先split string,再把数据导入.见vba例子
设 A1 = 11 12 13 14 15
Sub SplitRowToColumn()
Dim vString As Variant
Dim lCount As Long
Dim lCellCount As Long
lCellCount = 3
vString = Split(Cells(1, 1).Value, " ") // split cell A1
For lCount = LBound(vSecond) To UBound(vSecond)
lCellCount = lCellCount + 1
ActiveSheet.Cells(lCellCount, 1).Value = vString(lCount)
Next
End Sub
results are :
11 12 13 14 15
11
12
13
14
15
(共0页)