CopyPastor

Detecting plagiarism made easy.

Score: 0.815883219242096; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-03-15
by Ajmal sha

Original Post

Original - Posted on 2009-04-09
by Tony Edgecombe



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Try like this.
#include <boost/algorithm/string.hpp> #include <string> std::string str = "Hello World"; boost::to_upper(str); std::string newstr = boost::to_upper_copy<std::string>("Hello World");
Boost string algorithms:
#include <boost/algorithm/string.hpp> #include <string> std::string str = "Hello World"; boost::to_upper(str); std::string newstr = boost::to_upper_copy<std::string>("Hello World");



        
Present in both answers; Present only in the new answer; Present only in the old answer;