![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
炼气士
低调学习中
展开
-
rapidxml修改xml属性时遇到的两个问题!
网上有很多rapidxml修改xml属性介绍,不过在拿来用时会发现,虽然属性值修改成功了,但都会出现一些问题。1、修改后,原来的xml声明和注释被删除了,2、获取属性值打印出来是错的,不方便对属性值做进一步的处理问题1<?xml version="1.0" encoding="utf-8" standalone="yes" ?>… <!-- 注释—>问题2...原创 2020-01-21 11:25:03 · 796 阅读 · 0 评论 -
std::list 上报segmentation fault
有个项目用到了list,用的是标准的list类,封装在结构体中,如下typedef struct { ..... std::list<T *> tlist;}tStruct;在代码中是这样用的tStruct * newst = (tStruct *)malloc(sizeof(tStruct));T * newElement = (T*)malloc(sizeof...原创 2020-01-13 15:27:39 · 544 阅读 · 0 评论