vc++0xC0000005:读取位置0x00000014时发生访问冲突

vc++0xC0000005:读取位置0x00000014时发生访问冲突
reallocate to grow,,xstring
定义了一个string vector
std::vector<std::string> logfile;
logfile[0]="txwtech"; 做法错误,报错。野指针

所以,先初始化,logfile.pushback(" ");
再logfile[0]="txwtech",就ok啦

原文地址:https://www.cnblogs.com/txwtech/p/13586465.html