摘要:
#include <iostream> #include <string> using namespace std; int main() { string a; string str="a:=3;b:=4;c:=5;"; int index=str.find(";"); a=str.substr( 阅读全文
posted @ 2022-10-29 20:19
chenruolin1
阅读(10)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <string> using namespace std; int main() { string str="雷猴,我是李玉波,我今年上八年级;"; //replace是替换的意思 //一个汉字是两个字符 str=str.replace(st 阅读全文
posted @ 2022-10-29 20:18
chenruolin1
阅读(10)
评论(0)
推荐(0)

浙公网安备 33010602011771号