我有以下代码:
Sub poorguy()
Dim counter As Long
Dim countto As Long
Dim col1 As String
Dim col2 As String
Dim col3 As String
Dim col4 As String
Dim rngwrite As Range
counter = 0
countto = 100
For i = 0 To countto
col1 = Cells(12, 2).Offset(0, counter).Address
col2 = Cells(12, 3).Offset(0, counter).Address
col3 = Cells(3, 2).Offset(0, counter).Address
col4 = Cells(3, 3).Offset(0, counter).Address
Set rngwrite = Cells(58, 3).Offset(counter, counter)
rngwrite.Value = "=(" & col1 & "-" & col2 & ")*" …
Run Code Online (Sandbox Code Playgroud) 我有
string[] a = {"1","2","3","4","5"};
Run Code Online (Sandbox Code Playgroud)
我想创建第二个数组并让它存储*3数组a
有什么.
所以第二个数组看起来像:
string[] b = {"1","2","3","4","5","1","2","3","4","5","1","2","3","4","5"};
Run Code Online (Sandbox Code Playgroud)
我在考虑使用Array.Copy
,但还有另一种方法吗?