So how do you trim a string in c++ using boost?
#include <iostream>
#include <boost/algorithm/string/trim.hpp>
int main(int argc, char * argv[]) {
cout << trim(argv[1]);
}
Topics for professional software engineers
#include <iostream>
#include <boost/algorithm/string/trim.hpp>
int main(int argc, char * argv[]) {
cout << trim(argv[1]);
}
No comments:
Post a Comment