c++
caojinpei123
研究僧一枚,
展开
-
字符“\”替换为“\\”
字符“\”替换为“\\”#include <iostream>#include <algorithm> //必需加这个头文件#include <string>void charReplace(std::string rawStr, std::string &outStr){ string::size_type pos = 0; outStr = rawStr; while ((pos = outStr.find_first_of('\\',原创 2021-04-18 13:22:39 · 363 阅读 · 0 评论 -
写代码过程中遇到的问题
1.error C3867:非标准语法;请使用“&”来创建指向成员的指针答案: 请参见:博客https://blog.csdn.net/sysleo/article/details/96320261?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0..原创 2020-11-05 20:54:53 · 401 阅读 · 0 评论