title: How to Convert a C++ String to Uppercase
body: <p>I need to convert a string in C++ to full upper case. I've been searching for a while and found one way to do it:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;algorithm&gt; 
  #include &lt;string&gt;  
  
  using namespace std;
  
  int main()
  {
      string input;
      cin &gt;&gt; input;
  
      transform(input.begin(), input.end(), input.begin(), toupper);
  
      cout &lt;&lt; input;
      return 0;
  }
  </code></pre>
  
  <p>Unfortunately this did not work and I received this error message:</p>
  
  <p>no matching function for call to 'transform(std::basic_string::iterator, std::basic_string::iterator, std::basic_string::iterator,</p>
  
  <p>I've tried other methods that also did not work. This was the closest to working.</p>
  
  <p>So what I'm asking is what I am doing wrong. Maybe my syntax is bad or I need  to include something. I am not sure.</p>
  
  <p>I got most of my info here: 
  <a href="http://www.cplusplus.com/forum/beginner/75634/">http://www.cplusplus.com/forum/beginner/75634/</a>
  (last two posts)</p>