Abstract
在C/C++,array傳進function有很多技巧,但在C#,卻非常的單純,因為array自帶GetLength(),本篇主要是針對C/C++做比較。

Introduction

 1}


13行,因為array自帶GetLength(),所以一切變得很單純,而且在C#,array是reference type,也沒什麼pointer的問題,就當成pass by value的寫法就好了。

See Also
(原創) array傳進function該怎麼寫才好? (C/C++)
(原創) 如何使用function template傳遞array? (C/C++) (template)

相关文章: