声明一个vector<Encoder> *m_pvecBothEncoder;
怎样判断m_pvecBothEncoder为空》??????
怎样判断m_pvecBothEncoder为空》??????
解决方案 »
- 这种格式Time,如何从 _variant_t转向CString
- Windows 8 支持C++本地代码
- VC MFC帮忙把修改密码的程序改成删除用户的程序
- 我的vc6,为何没有 devenv.exe 呀,vc6的ide却可以照样打开
- InfoZip算法在XP系正常使用,在WINCE下却初始化不了,求解
- 如何禁止树控件中某一节点的展开?
- 请问如何不让非模态对话框自动关闭? 谢谢
- 用过“OleCreatePropertyFrame“这个函数的高手请进,救命阿
- 这种类型的参数怎么使用?void xxx(char *fmt,...)
- 多个GPS轨迹记录与显示
- 不同语言写的FTP服务器和客户端能互连吗?
- CString类//为什么这样不行?
//...if(m_pvecBothEncoder == NULL )
//...
m_pvecBothEncoder->size() == 0
bool empty( ) const;
if ( m_pvecBothEncoder != NULL )
{
m_pvecBothEncoder->clear();
}
提示
Unhandled exception at 0x0051e364 in iScanTVClient.exe: 0xC0000005: Access violation reading location 0xcdcdcdd9.
if ( m_pvecBothEncoder != NULL )
{
m_pvecBothEncoder->clear();
}
提示
Unhandled exception at 0x0051e364 in iScanTVClient.exe: 0xC0000005: Access violation reading location 0xcdcdcdd9.
bool beEmpty = ( *m_pvecBothEncoder ).empty();
if ( beEmpty )
{
MessageBoxA( NULL , "It 's Empty " , "Qt" , MB_OK|MB_TOPMOST );
}
else
{
MessageBoxA( NULL , "It 's Not Empty " , "Qt" , MB_OK|MB_TOPMOST );
}
vector<Encoder> *m_pvecBothEncoder --》》 vector<Encoder*> m_pvecBothEncoder