C#
--------------------------------------------------
public class c_data {
public double value;
public int label;
public int ID;
public c_data() { }
public c_data(double val) {
value = val;
}
}
--------------------------------------------------
Object-C
--------------------------------------------------
@interface CData : NSObject--------------------------------------------------
{
double value;
int label;
int ID;
}
@property double value;
@property int label;
@property int ID;
-(id) init;
-(id) initWithValue:(double)value;
@end
No comments:
Post a Comment