正则表达式初探——eoj3194
感觉这题用正则其实有点大炮打蚊子的意味了。。不过拿来练练手还是可以的。c++实现 //谢谢fwq巨巨的提示,c++11已经支持正则表达式了#include <bits/stdc++.h>
using namespace std;
int del(string s,int pos,string c)
{
s = s.insert(pos,c);
int len = s.s...
原创
2018-02-17 10:37:33 ·
331 阅读 ·
2 评论