阅读背景:

可以通过带参数的函数分配数组的长度吗?

来源:互联网 

I'm having about 4 int arrays that need their length calculated, assigned to them and then populated. I was trying to thin out the code by using a function with parameters, instead of repeating long calculations 4 times, but I can't seem to set the length by designating the array as a parameter. I tried something like the code below:I'm having about 4 int arrays that need their l




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: