title: C++ Function is not being called
body: <p>I am a new relatively new programmer and I've decided to code in C++. Currently, I am working on a converter app project. I want to convert from money to weight to temperatures and if possible, even more, things. I have written a good block of code and I wanted to check if it worked. For some reason, the code did compile but all the application did be give me a blank screen with no area to enter a value or anything. It did not display the instructions I wrote or anything.</p>
  
  <p>Here is the code: </p>
  
  <pre><code>#include "std_lib_facilities.h"
  
  int a = 0;
  int b = 0;
  int c = 0;
  
  int money()
  {
      cout &lt;&lt; "This will convert CAD to either USD or EUR\n";
      cout &lt;&lt; "Please input USD or EUR followed by an enter keystroke for conversion\n";
      string a;
      while(cin &gt;&gt; a){
          if( a == "USD"){
              cout &lt;&lt; "If you would like to convert USD into CAD, enter 1.\n";
              cout &lt;&lt; "If you would like to convert CAD into USD, enter 2.\n";
              int x;
              cin &gt;&gt; x;
              if( x == 1){
                  cout &lt;&lt; "Please enter the amount you wish to convert.\n";
                  double j;
                  cin &gt;&gt; j;
                  double k = j*1.29;
                  cout &lt;&lt; j &lt;&lt; "USD is " &lt;&lt; k &lt;&lt; "CAD.\n";
  
              }
              if ( x == 2){
                  cout &lt;&lt; "Please enter the amount you wish to convert.\n";
                  double o;
                  cin &gt;&gt; o;
                  double p = o*0.77;
                  cout &lt;&lt; o &lt;&lt; "CAD is " &lt;&lt; p &lt;&lt; "USD.\n";
              }
          }
          if( a == "EUR"){
              cout &lt;&lt; "If you would like to convert EUR into CAD, enter 1.\n";
              cout &lt;&lt; "If you would like to convert CAD into EUR, enter 2.\n";
              int y;
              cin &gt;&gt; y;
              if(y == 1){
                  cout &lt;&lt; "Please enter the amount you wish to convert.\n";
                  double g;
                  cin &gt;&gt; g;
                  double h = g*1.46;
                  cout &lt;&lt; g &lt;&lt; "EUR is " &lt;&lt; h &lt;&lt; "CAD.\n";
  
              }
              if(y == 2){
                  cout &lt;&lt; "Please enter the amount you wish to convert.\n";
                  double z;
                  cin &gt;&gt; z;
                  double x = z*0.69;
                  cout &lt;&lt; z &lt;&lt; "CAD is " &lt;&lt; x &lt;&lt; "EUR.\n";
              }
  
          }
      }
  
  }
  
  int weight()
  {
      cout &lt;&lt; "This will convert pounds to kilograms.\n";
      cout &lt;&lt; "Please input the amount you wish to convert.\n";
  }
  
  int temperature()
  {
  
  }
  
  int setup()
  {
      cout &lt;&lt; "Please enter either a,b or c for the corresponding conversions.\n";
      cout &lt;&lt; "(Where a is for currency, b is for weight, and c is for temperature.\n";
      string a;
      while ( cin &gt;&gt; a){
          if( a == "a"){
              int money();
              }
          if( a == "b"){
              int weight();
          }
          if( a == "c"){
              int temperature();
          }
      }
  }
  
  int main()
  {
      cout &lt;&lt; "Welcome to the ultimate converter app.\n";
      int setup();
      return 0;
  }
  </code></pre>
  
  <p>Any help would be appreciated.</p>
  
  <p>EDIT: SORRY FOR THE TROUBLE EVERYONE. THANKS TO EVERYONE WHO ANSWERED I JUST REALIZED I DECLARED A FUNCTION INSTEAD OF CALLING IT.</p>