title: Creating a small struct in C - have some errors
body: <pre><code>#include "stdio.h"
  #include "stdafx.h"
  #define _CRT_SECURE_NO_WARNINGS
  #define getch() _getch()
  
  struct Clicker {
      int toggle;
      int average;
  };
  
  int main()
  {
      struct Clicker *clicker;
      printf("Enter your toggle key: ");
      (*clicker).toggle = _getch();
      printf("Enter your average cps: ");
      scanf_s("%d", (*clicker).average);
      printf("\nCurrent settings: \nToggle: %i \nAverage:%i\n", clicker-&gt;toggle, clicker-&gt;average);
      getchar();
      return 1;
  }
  </code></pre>
  
  <p>There is the code.
  Errors:</p>
  
  <pre class="lang-none prettyprint-override"><code>'_getch' undefined, assuming extern returning int  
  'scanf_s' format string '%d' requires an argument of type 'int *' but variadic arguemnt 1 has type int.  
  uninitialized local variable 'clicker' used.
  </code></pre>
  
  <p>What am I doing wrong?</p>