本帖最后由 于清扬 于 2014-4-3 17:23 编辑
看资料看到代码中定义了这段枚举,
typedef enum {
SUGGESTTYPE_STATION = 0X40,
SUGGESTTYPE_ROUTE,
SUGGESTTYPE_POI_START,
SUGGESTTYPE_POI_END,
SUGGESTTYPE_ROUTE_HISTORY,
SUGGESTTYPE_STATION_HISTORY,
}SUGGESTTYPE
我逐个打印了下,
NSLog(@"%d",SUGGESTTYPE_STATION);
NSLog(@"%d",SUGGESTTYPE_ROUTE);
NSLog(@"%d",SUGGESTTYPE_POI_START);
NSLog(@"%d",SUGGESTTYPE_POI_END);
NSLog(@"%d",SUGGESTTYPE_ROUTE_HISTORY);
NSLog(@"%d",SUGGESTTYPE_STATION_HISTORY);
为什么结果是
2014-03-31 13:40:39.509 1111[802:60b] 64
2014-03-31 13:40:39.511 1111[802:60b] 65
2014-03-31 13:40:39.512 1111[802:60b] 66
2014-03-31 13:40:39.513 1111[802:60b] 67
2014-03-31 13:40:39.514 1111[802:60b] 68
2014-03-31 13:40:39.515 1111[802:60b] 69
枚举不特别说明的话是从0开始的,这个0X40是怎么算得,为什么是从64开始的。。。????
|
|