title: C++ - using return when the function being called on has parameters
body: <p>I have a function like this:</p>
  
  <pre><code>void functiont(int a, int b)
  {
          if(playingnumber=="T")
          {
              returntransfer=1;
              struct A
              {
                  ~A() // Destructor to run after returning variable
                  {
                      void cardselecth(int playingcolorh, int playingnumberh);
                  }
              }
              return returntransfer;
          }
  }
  </code></pre>
  
  <p>Anyway I need to grab that returned variable without calling on int a or int b. So in another function I write</p>
  
  <pre><code>newvar=functiont(int a, int b);
  </code></pre>
  
  <p>And it gives a compile error. I don't know how else to do this. I could write functiont(a,b); and I get an error; I write functiont(int,int); and get an error. I've tried writing functiont(); but then it assumes the function's in the same file and I haven't defined it, which it isn't (I'm transferring across files here, so I need to define any parameters so it knows to refer to another file).</p>