Created
December 31, 2011 08:27
-
-
Save allen501pc/1543374 to your computer and use it in GitHub Desktop.
函數傳遞固定大小的陣列
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @Function: void fnPrintArray(int arr[10]) | |
* @Brief: Print the array content. | |
* @Input: int arr[10] | |
* @Output: array content. | |
*/ | |
void fnPrintArray(int arr[10]) | |
{ | |
for(size_t i=0;i<10;++i) | |
{ | |
std::cout << i << " " << std::endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment