C++ Function with one input and one output not getting input
<p>its function subtotalspool. It says i cant use it as a function somewere inside int main and it says in function subtotalspool that the varriable spoolnumber wasnt declared. I put "int spoolnumber" in the function declaration for subtotalspool. is there something im missing?
EDIT for code change</p>

<pre><code>/**************************************************/
/* Author:     Samuel LaManna                     */
/* Course:     CSC 135 Lisa Frye                  */
/* Assignment: Program 2 Functions                */
/* Due Date:   10/11/2011                         */
/* Filename:   program2.cpp                       */
/* Purpose:    This progam will accept input and  */
/*             give user shipping and total cost  */
/*             for a shippment of spools of wire  */
/**************************************************/


#include &lt;iostream&gt;

using namespace std;

void instruct();     //Function Declaration for instruction function
int spoolnum();      //Function for number of spools input
int stotalspool(int spoolnumber); //Function to calculate the sub total 
float shippingcost();//Function to calculate shipping cost
void results();      //Function to display all of the costs and a final total


int main()
{
  int spoolnumber;     //Var for number of spools to be ordered
  int subtotalspool;   //Var for spool sub total

  instruct();          // Function call to print instructions to user

  spoolnumber = spoolnum(int spoolnumber );
  //Test output to make sure/show that input given in function is retained in int main
  cout &lt;&lt; endl &lt;&lt; "Value stored in variable spollnumber inside int main is: " &lt;&lt;  spoolnumber &lt;&lt; endl;

  subtotalspool = stotalspool();

  cout&lt;&lt; endl &lt;&lt; "Value stored in variable subtotalspool inside int main is: " &lt;&lt; subtotalspool &lt;&lt; endl;

  return 0;
}



/********************************************/
// Name: instruct                            /
// Description: Print instructions to user   /
// Parameters: N/A                           /
// Reture Value: N/A                         /
/********************************************/

void instruct()
{
  cout &lt;&lt; endl &lt;&lt; "This program will calculate the shipping information " &lt;&lt; endl
       &lt;&lt; "for a batch of wire spools. " &lt;&lt; endl &lt;&lt; endl;

  return;
}

/********************************************/
// Name: spoolnum                            /
// Description: Ask for and get number of    /
// spools                                    /
// Parameters: N/A                           /
// Reture Value: spoolnum                    /
/********************************************/
int spoolnum()
{
  int spoolnum = 0;
  char type = 'n';

  do {
      cout &lt;&lt; "Number of spools to be shipped: ";
      cin &gt;&gt; spoolnum;
      cout &lt;&lt; endl;
      cout &lt;&lt; spoolnum &lt;&lt; " spool(s) of wire will be shipped" &lt;&lt; endl;
      cout &lt;&lt; "Is this correct? [y/n] ";
      cin &gt;&gt; type;
  } while (type != 'y');

  return spoolnum;
} 

/********************************************/
// Name: stotalspool                       /
// Description: Calculate the subtotal for   /
//the shipped spools                         /
// Parameters: N/A                           /
// Reture Value: stotalspool               /
/********************************************/
int stotalspool()
{
  int stotalspool;
  stotalspool = spoolnumber * 100;

  return stotalspool;
}
</code></pre>
