fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <boost/algorithm/string.hpp>
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. string str = "\"somevalue\"";
  9. cout << " before " << str << endl;
  10. boost::erase_all(str, "\"");
  11. cout << " formated " << str << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
 before "somevalue"
 formated somevalue