Y
yeah
hi
I got the following errors while compiling my c++ file
bitstrm.cpp: In member function 'Void CInBitStream::bookmark(Bool)':
bitstrm.cpp:129: error: 'streampos' does not name a type
bitstrm.cpp:135: error: 'strmpos' was not declared in this scope
bitstrm.cpp:142: error: 'strmpos' was not declared in this scope
source:::
126://Void CInBitStream::bookmark (Bool bSet)
127:Void CInBitStream::bookmark (int bSet)
{
//static Bool bBookmarkOn = FALSE;
static int bBookmarkOn = FALSE;
static streampos strmpos;
static UInt uNumOfBitsInBuffer;
static Char chDecBuffer;
static Int lCounter;
if(bSet) {
strmpos = m_pInStream -> tellg();
uNumOfBitsInBuffer = m_uNumOfBitsInBuffer;
chDecBuffer = m_chDecBuffer;
lCounter = m_lCounter;
bBookmarkOn = TRUE;
}
else {
m_pInStream -> seekg (strmpos);
m_uNumOfBitsInBuffer = uNumOfBitsInBuffer;
m_chDecBuffer = chDecBuffer;
m_lCounter = lCounter;
bBookmarkOn = FALSE;
}
150:}
Is this need any header files to add
I got the following errors while compiling my c++ file
bitstrm.cpp: In member function 'Void CInBitStream::bookmark(Bool)':
bitstrm.cpp:129: error: 'streampos' does not name a type
bitstrm.cpp:135: error: 'strmpos' was not declared in this scope
bitstrm.cpp:142: error: 'strmpos' was not declared in this scope
source:::
126://Void CInBitStream::bookmark (Bool bSet)
127:Void CInBitStream::bookmark (int bSet)
{
//static Bool bBookmarkOn = FALSE;
static int bBookmarkOn = FALSE;
static streampos strmpos;
static UInt uNumOfBitsInBuffer;
static Char chDecBuffer;
static Int lCounter;
if(bSet) {
strmpos = m_pInStream -> tellg();
uNumOfBitsInBuffer = m_uNumOfBitsInBuffer;
chDecBuffer = m_chDecBuffer;
lCounter = m_lCounter;
bBookmarkOn = TRUE;
}
else {
m_pInStream -> seekg (strmpos);
m_uNumOfBitsInBuffer = uNumOfBitsInBuffer;
m_chDecBuffer = chDecBuffer;
m_lCounter = lCounter;
bBookmarkOn = FALSE;
}
150:}
Is this need any header files to add