我有一个以\r\n结尾的bash变量 $ # Not the real command to get VAR's value, just an example
$ VAR="$(echo -en 'hello00000007 我想删除\r ( \n本身由bash正确处理)。我可能会修剪它(VAR="$(tr -d '\r' <<< "$VAR")"),但这意味着只为该任务运行一个进
< " starting at index " << i << std::endl;size_t i{}; i < text.length() - 3; ++isize_t i{}; i < text.length(); ++i
如果没有-3.这将使代码更加灵活,您可以在string phrase中输入任何您想要的文本,而不必担心for循环中的