This is the first programming class I have ever taken, the teacher is horrible, and its only one night a week. I've done good so far, but I don't have a clue what I'm doing with this newest program. And I'm pretty embarrassed. I've re-written and deleted this code for hours, trying to make sense of the book, but I'm still lost. The main funtion is supposed to call four other functions, and the whole point is to display the total cost. Any help would be great, I'm hopeless at this point (as you will see):

// "Desks"

#include "stdafx.h"
#include <conio.h>
#include <iostream>
#include <string>
using namespace std;

int main()
{
int numDrawers();
char woodtype();
int cost(numDrawers);
getch();
}

int numDrawers()
{
int numDrawers;
cout<<"Enter the number of drawers in the desk ";
cin>>numDrawers;
int cost(numDrawers);
}

char woodtype()
{
char woodtype;
cout<<"Enter p for pine, o for oak, or m for mahogany ";
cin>>woodtype;
return (woodtype);
}

int cost(numDrawers)
{
int cost;
if(woodtype == 'p)
cost = (numDrawers * 30) + 100;
cout<<cost<<endl;
else
if(woodtype == 'o')
cost = (numDrawers * 30) + 140<<;
cout<<cost<<endl;
else
if(woodtype == 'm')
cost = (numDrawers * 30) + 180<<;
cout<<cost<<endl;
else
cout<<"Error"<<endl;
return cost;
}