Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 为什么在OLE DB中DBDATE具有年份的有符号整数类型?_C++_Database_Oledb - Fatal编程技术网

C++ 为什么在OLE DB中DBDATE具有年份的有符号整数类型?

C++ 为什么在OLE DB中DBDATE具有年份的有符号整数类型?,c++,database,oledb,C++,Database,Oledb,DBDATE在oledb.h typedef struct tagDBDATE { SHORT year; USHORT month; USHORT day; } DBDATE; 虽然month和day都是未签名的,year以某种方式被签名。理由是什么?年在实践中会是负值吗?罗马帝国建立于公元前27年,也就是公元前27年(负值)

DBDATE
oledb.h

typedef struct tagDBDATE
    {
    SHORT year;
    USHORT month;
    USHORT day;
    }   DBDATE;

虽然
month
day
都是未签名的,
year
以某种方式被签名。理由是什么?
在实践中会是负值吗?

罗马帝国建立于公元前27年,也就是公元前27年(负值)