我写了一个程序,怎么好像vc不认识queue?
简化后的代码如下:
#include <stdio.h>
#include <queue>
typedef unsigned char byte;
class encode
{
private:
queue < byte > tag; // TAG temporary area
public:
encode(void);
~encode(void);
};
错误提示如下:
encode.hpp(33) : error C2143: syntax error : missing ';' before '<'
encode.hpp(33) : error C2501: 'queue' : missing storage-class or type specifiers
encode.hpp(33) : error C2059: syntax error : '<'
encode.hpp(33) : error C2238: unexpected token(s) preceding ';'
我是个stl新手,还请大家指教。