积极答复者
vector<CString>类型的序列化

问题
答案
-
你好,
你的代码看上去序列化实现的思路是没有问题的,只是在代码中出现了小的失误。 “ for(int i=0;cont;i++)ar<<vv[i];” 这个for 循环没有了条件限制,循环变量 i 自然增加,最终导致下标越界。
Best Regards,
May
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已标记为答案 May Wang - MSFT 2013年8月29日 1:05
全部回复
-
-
你好,
你的代码看上去序列化实现的思路是没有问题的,只是在代码中出现了小的失误。 “ for(int i=0;cont;i++)ar<<vv[i];” 这个for 循环没有了条件限制,循环变量 i 自然增加,最终导致下标越界。
Best Regards,
May
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已标记为答案 May Wang - MSFT 2013年8月29日 1:05