title: c++ enum as parameter in a function and calling the function in another file
body: <p>I am making an engine in c++. Its nothing special yet and I am a beginner in c++ but I thought it would be a fun project to work on learn the skills I need later when I start working. I am making a function that takes user input and when that specific key is pressed it can execute the code you want like Input.GetKeyDown in unity. I have a problem and that is that I am trying to give an enum with all the keycodes for the keys as a parameter but it gives an error and I cant find a working sollution anywhere.
  This is my code:</p>
  
  <p>Functions.cpp</p>
  
  <pre><code>enum keyinputlist
  {
   a = 97, b = 98, c = 99, d = 100, e = 101,
   f = 102, g = 103, h = 104, i = 105, j = 106, k = 107,
   l = 108, m = 109, n = 110, o = 111, p = 112, q = 113,
   r = 114, s = 115, t = 116, u = 117, v = 118,
   w = 119, x = 120, y = 121, z = 122
  };
  
  bool Functions::test(keyinputlist List)
  {
    bool Success = CheckInput(List);
    return Success;
  }
  </code></pre>
  
  <p>Functions.h</p>
  
  <pre><code>class Functions
  {
   public:
     Functions();
     ~Functions();
     //Other public functions
     bool test(keyinputlist List);
  };
  </code></pre>
  
  <p>Main.cpp</p>
  
  <pre><code>int main()
  {
   Functions function;
  
   if (function.test(a) != 0)
   {
      std::cout &lt;&lt; "It worked!" &lt;&lt; std::endl;
      sleep_for(1.5s);
   }
   }
  </code></pre>
  
  <p>ErrorList:</p>
  
  <pre><code>E0020: identifier "a" is not found
  E0020: identifier "keyinputlist" is not found
  </code></pre>