title: Doing some counter manipulation, how do I make it so that if setCounter() has no arguments, the counter would be zero?
body: <p>Given the following C++ program:</p>
  
  <pre><code>#include "counterType.h"
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  counterType::counterType()
  {
      counter = 0;
  }
  
  counterType::counterType(int c)
  {
      setCounter(c);
  }
  
  void counterType::setCounter(int ck)
  {
      counter = ck;
  }
  
  int counterType::getCounter()
  {
      return counter;
  }
  
  void counterType::incrementCounter()
  {
      ++counter;
  }
  
  void counterType::decrementCounter()
  {
      --counter;
  }
  
  void counterType::print()
  {
      cout &lt;&lt; "Counter = "&lt;&lt; counter &lt;&lt; endl;
  }
  </code></pre>
  
  <p>The code seems to only work when setCounter() has an argument in it. The only tests that fail are when is has no argument. So how do I check it in a way that if there is no argument, then the counter would be 0?</p>