|
-
October 12th, 2005, 10:30 AM
#5
Re: Passing array of struct as reference
The first code: void foo(int **pLocal) crushes, though, the second code:
void foo(int *& pLocal) works well in .cpp file but doesn't pass compilation in a .c file.
error C2143: syntax error : missing ')' before '&'
error C2143: syntax error : missing '{' before '&'
error C2059: syntax error : '&'
error C2059: syntax error : ')'
Thanks
Eli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|