会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
冰从天降
博客园
首页
新随笔
联系
订阅
管理
2019年6月26日
C++结构体的初始化问题
摘要: 结构体中用到是CString的类型变量的时候,用memset初始化是错误的 原因:m_strTemp的地址被赋值为空指针了,并不是把m_strTemp内容赋值空了,所以后续使用就出错了 如下: struct Test { CString m_strTemp; int m_nTemp; bool m_
阅读全文
posted @ 2019-06-26 08:31 冰从天降
阅读(1774)
评论(0)
推荐(0)
编辑
公告