传递锯齿状数组作为函数的参数 [英] passing jagged array as a parameter of function

查看:71
本文介绍了传递锯齿状数组作为函数的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,你好

Hello,everyone
how to pass jagged array as a parameter of function and get return the same array with modification from that function.

推荐答案

hiii,

hiii,

Not for certain, but if it follows the similar syntax of a regular array, then wouldn't the signature of the method look something like this:

private void MyMethod(int[][] a)

and the call would be:

this.MyMethod(a)


^ ]寻找解决方案?

在这里,来看一下首次匹配-锯齿状数组示例 [ ^ ]

此外,还有更多Google-fu-锯齿状数组例程参数 [常见问题解答常见问题解答 [ ^ ]以及Pete O''Hanlon的常见问题解答 [ ^ ]),然后尝试找到一个解决方案- Google是您的朋友

如果您自己的代码有问题,我们很乐意为您提供帮助.地狱,我们有时实际上很喜欢.做您的工作(或更糟糕的是,您的Google会搜索您的工作)
Have you Googled[^] for a solution?

Here, take a look, first hit - jagged array example[^]

Also, a bit more Google-fu - jagged array routine parameter[^]

Please, in the future, take a look at the FAQs first (Q&A FAQ[^] and also Pete O''Hanlon''s FAQ[^]), then try to find a solution by yourself - Google is your friend

For problems with your own code, we''re glad to help. Hell, we sometimes actually like it. Doing your work (or even worse, your Google searches for you), not at all


这篇关于传递锯齿状数组作为函数的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆