請參閱我的代碼: #include <stdint.h>
int main(int argc, char *argv[])
{
unsigned char s = 0xffU;
char ch = 0xff;
int val = 78;
((int8_t) + (78)); /*what does this mean*/
INT8_C(val); /*equivalent to
我很驚訝,包括stdint.h作品,但不包括cstdint。 $ aCC sizeof.cpp
"sizeof.cpp", line 5: error #2005-D: could not open source file "cstdint"
#include <cstdint>
^
1 error detected in the compilation of "s
到目前爲止,我假設u_int16_t是一個窗口類型,位於名爲stdint.h的MSVS頭文件中。我正在使用GNU g ++編譯器(實際上是使用mingw的代碼塊),我想知道typedef unsigned short uint_least16_t;(在mingw裏面的stdint.h)是否等價或者我能做些什麼來包含這種類型? 這個問題實際上是關於編譯用於MSVS的google sparsehash