title: Conversion from string literal to char* is deprecated
body: <p>I keep getting the error "Conversion from string literal to char* is deprecated" in my code. The purpose of the code is to use a pointer-to-pointer to assign string1 and string2 a word, then print it out. How can I fix this? </p>
  
  <p>Here is my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  struct WORDBLOCK
  {
      char* string1;
      char* string2;
  };
  
  void f3()
  {
      WORDBLOCK word;
  
      word.string1 = "Test1";
      word.string2 = "Test2";
  
  
      char *test1 = word.string1;
      char *test2 = word.string2;
  
      char** teststrings;
  
      teststrings = &amp;test1;
      *teststrings = test2;
  
      cout &lt;&lt; "The first string is: "
           &lt;&lt; teststrings
           &lt;&lt; " and your second string is: "
           &lt;&lt; *teststrings
           &lt;&lt; endl;  
  }
  </code></pre>