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啦

posted @ 2020-08-30 20:09  txwtech  阅读(707)  评论(0编辑  收藏  举报