title: Silly C++ reference question
body: <p>I do not know how to call a function with a reference in it :(   It is a silly noob question I know.</p>
  
  <p>The header is let's call it <code>ref.h</code> has a function in it that is:</p>
  
  <pre><code>virtual int funcName (Bike &amp;biker, BikeArray &amp;bikearray, int x, int y .... )
  </code></pre>
  
  <p>Within <code>ref.h</code> there is another header that is called <code>Bike.h</code>.</p>
  
  <p>How do I call <code>funcName</code> from my <code>main.cpp</code> (obv. I included <code>Bike.h</code> and <code>ref.h</code></p>
  
  <p>I have called other functions from <code>ref.h</code> in my program, but the other functions did not have references to Bike in them, just variables...  How do I declare everything?</p>
  
  <p>What I have so far:</p>
  
  <pre><code>ref *ref;
  Bike bike;
  BikeArray bikearray;
  int x, y;
  
  ref = ref::createinstace(configFile);
  
  ref-&gt;funcName(bike, bikearray, x,y);
  </code></pre>
  
  <p>ref->funcName should return results based on the configFile i passed.  I have done this earlier with another function in ref.h, but that function only had int's and doubles... no objects to Bike ...</p>
  
  <p>... and I get the Error "no matching function for call ref::funcName(Bike&amp;, BikeArray&amp;, int&amp;, int&amp;)</p>
  
  <p>Sorry, I know this is a novice question!</p>