继续说uint16没有宣布

Kri*_*ong 4 c c++

好吧我知道这必须是一个简单的问题,但对于我的生活我无法弄清楚为什么我一直得到这个消息我在ubuntu linux V13.04上使用eclipse V3.8

编译说"unit16尚未宣布

#ifndef ENIGMA_2C_H_
#define ENIGMA_2C_H_

class Enigma2C {

public:
    static bool checkOptionKey(uint16 option, char *key);
    static bool encrypt (char *inString, char *outString);
    static bool decrypt (char *inString, char *outString);
};

#endif
Run Code Online (Sandbox Code Playgroud)

Yu *_*Hao 12

使用uint16_tcstdint,这是在C++ 11引入的.或者定义自己的类型.

对于C,它stdint.h是在C99中引入的.