title: Incomplete Definition of Type (struct )
body: <p>I tried many times to fix the error "<code>Incomplete Definition of Type of struct *</code> ,please can you help me to find the problem and fix it ?</p>
  
  <p>Any advice on this?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;stdlib.h&gt;
  #include&lt;time.h&gt;
  #include&lt;string.h&gt;
  struct mypoint;
  typedef struct mypoint {
      int x;
      int y;
  };
  
  void setRandomPoint(struct mypoint *a, int min, int max)
  {
      do {
          a-&gt;x = rand();
  
      } while (a-&gt;x &gt; max || a-&gt;x &lt; min);
      do
      {
          a-&gt;y = rand();
      } while (a-&gt;y &gt; max || a-&gt;y &lt; min);
  
  
  }
  int main()
  {
      struct myPoint point;
      int min = 0, max = 0;
      int i;
      srand(time(NULL));
      while (min &gt;= max)
      {
          printf("Enter min:");
          scanf("%d", &amp;min);
          printf("Enter max:");
          scanf("%d", &amp;max);
      }
      for (i = 0; i&lt;5; i++)
      {
          setRandomPoint(&amp;point, min, max);
          printf("%d. point.x=%d, point.y=%d\n", i + 1, point.x, point.y);
      }
      printf("Finish.\n");
      return 0;
  }
  </code></pre>
  
  <p>please anyone can help me plz ?</p>