请问如何去掉一个string的前2行啊
如题
<Proxy> there is a message:<?xml version="222" encoding="111"?>
<?info version="1.0" type="334422" protname="xxx"?>
<msg at="16">
<header at="16">
我想把前2行去掉 如何搞啊
string result;
string::size_type pos = s.find('\n');
if (pos != string::npos)
{
pos = s.find('\n', pos + 1);
if (pos != string::npos)
{
result = s.substr(pos + 1);
}
}