cpp run function that before it is declared?
<p>I'm new to CPP, and I want to know how to run a function that isn't in its scope. I'm used to doing such things in javascript, and I get an error CPP when I try to do that. What I mean is the below:</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;
int tic_h;
int tic_v;
void echo(string e_val){
   cout &lt;&lt; e_val;
}
void c_mes(){
  echo("X|0|X\n");
  echo("-----\n");
  echo("X|0|X\n");
  echo("-----\n");
  echo("X|0|X\n");
  s_v();
}
void s_v(){
  echo("Please enter vertical coordinate: ");
  cin &gt;&gt; tic_v;
  if(tic_v&lt;4&amp;&amp;tic_v&gt;0){
    c_mes();
  }else{
    s_v();
  }
}
void s_h(){
  echo("Please enter horizontal coordinate: ");
  cin &gt;&gt; tic_h;
  if(tic_h&lt;4&amp;&amp;tic_h&gt;0){
    s_v();
  }else{
    s_h();
  }
}

int main(){
  s_h();
  return 0;
}
</code></pre>

<p>I get this error:</p>

<blockquote>
  <p>error: 'sv' was not declared in this scope on line 16</p>
</blockquote>

<p>How can I make it work?</p>
