How do I call up a function from anywhere in the program in C++?
<p>Here is the code: </p>

<pre><code>while (inDungeonRoom1 == true) {

    if (choice == "torch" || choice == "Torch" || choice == "pick up torch" ||
      choice == "Pick up torch" || choice == "grab torch" ||
       choice == "Grab torch") {

          torch++;
</code></pre>

<p>I want to be able to call a function, like information about where you are anywhere within the program, without messing with if statements.</p>
