|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
I am trying to port some C code libraries into a program I am working on and I am a bit puzzled how to convert this function declaration:
void dateYMD(int nDate, int &year, int &month, int &day, calendar dateSystem=cal_Gregorian)
When I try to compile this I get the following error:
error: expected ';', ',' or ')' before '&' token
Now as I understand this, I am trying to pass in a Date as an integer, and then get back a date in the form of year, month, and day represented as integers with &year, &month, and &day referring to the addresses of the pointers to these values. I know, from reading a recent message, that this code is trying to do something that would be okay in C/C++ but which has to be done differently in Objective C.
I am knew to Objective C and am still learning.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.