title: allegro/c++ cannot convert argument 3 from 'const char *' to 'char *'
body: <p>I'm a noob trying to learn c++ and allegro and was following a tutorial which is how I came up with this code.  My issue is at line:</p>
  
  <p>"textout_centre_ex(screen, font1, Draw.c_str(), scrW / 2, scrH / 2, eBlue, -1);"  </p>
  
  <p>When it comes to 'Draw.c_str()' I get Error: argument of type "const char*" is incompatible with parameter of type "char*".</p>
  
  <p>If I try and build I get "error C2664: 'void textout_centre_ex(BITMAP *,FONT *,char *,int,int,int,int)' : cannot convert argument 3 from 'const char *' to 'char *'"</p>
  
  <p>How can I resolve this?</p>
  
  <pre><code>// Set variables
  int counter = 0;
  std::string Word = "SuperAwesomeTrivia";
  std::string Draw = "";
  
  FONT *font1 = load_font("font1.pcx", NULL, NULL);
  
  while (!closeWindow){
  
  // Update
      Draw += Word[counter];
      counter++;
  
      if (counter &gt; Word.length() - 1)
      {
          closeWindow = true;
      }
  
      // Draw
      textout_centre_ex(screen, font1, Draw.c_str(), scrW / 2, scrH / 2, eBlue, -1);
      if (!closeWindow)
          rest(200);
      else
          rest(2000);
      clear_bitmap(screen);
  }
  destroy_font(font1);
  allegro_exit();
  
  return 0;
  </code></pre>