Skip to content

Instantly share code, notes, and snippets.

@allen501pc
Created December 31, 2011 08:27
Show Gist options
  • Save allen501pc/1543374 to your computer and use it in GitHub Desktop.
Save allen501pc/1543374 to your computer and use it in GitHub Desktop.
函數傳遞固定大小的陣列
/*
* @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