title: Error Link 2019
body: <blockquote>
    <p>Error 1   error LNK2019: unresolved external symbol "void __cdecl show(struct stringy const &amp;)" (?show@@YAXABUstringy@@@Z) referenced in function _main   F:\c++代码\exercise8.42\exercise8.42\Source.obj   exercise8.42</p>
  </blockquote>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;cstring&gt;
  
  struct stringy{
      char * str;
      int ct;
  };
  
  void set(stringy &amp; r1, char * a);
  void show(const stringy &amp; r1);
  ;
  
  int main()
  {
      stringy beany;
      char testing[] = "Reality isn't, and show() go there";
      set(beany, testing);
      show(beany);
  
      return 0;
  }
  
  void set(stringy &amp; r1, char *a)
  {
      int i = 0;
      while (a[i] != '\0')
          i++;
      r1.str = new char;
      r1.ct = i;
      for (int b = 0; b &lt; i; b++)
          r1.str[b] = a[b];
      r1.str[i + 1] = '\0';
  }
  
  void show(stringy &amp; r1)
  {
      std::cout &lt;&lt; *r1.str;
  }
  </code></pre>
  
  <p>I am just beginning code in c++.</p>