转义

当字符串中有双引号时,需要使用“”进行转义。
字符串中有“”,需要使用“\”
例如:const char* ip = "ifconfig | grep "inet" | grep -v 127.0.0.1 | awk '{print $2}'|grep '\.'";
主要记录的是学习听课的笔记
原文地址:https://www.cnblogs.com/chengeputongren/p/12177789.html