THREE ERRORS. PLEASE HELP !!

Hi guys . i would like to show to you my code. i think its right but. 3 error showing up. the 3 errors are these

error: expected initializer before 'int'
error: expected unqualified-id before '{' token
error: expected unqualified-id before '{' token
. Please correct my code. My codes is here . I mark "X" where the computer saying where my error is .

#include<iostream>


int desk(int a)
int wood(int b) <----XXXXXXXX
int recieve()
void display()

void main()
{
clrscr();
using namespace std;
desk(a);
wood(b);
b , a = recieve();
c = display();


}

int desk(int a);
{ < -----XXXXXXXXXXXXXXX
cout<<"Input the number of drawers:";
cin>> a;
return a;
}


int wood(int b);
{ <----- XXXXXXXXXX
clrscr();
char s;
cout<<"Type of wood: wood c
odes:\n";
cout<<"Mahogany: (m)\n";
cout<<"Oak: (o)\n";
cout<<"Pine: (p)\n";
cout<<"\n";
cout<<"\n";
cout<<"Pick the code of the wood you want:";
cin>>s;

switch (s)
{
case'm':
case'M':
{
b=180;
cin>> b;
break;
}
case 'o':
case 'O':
{
b=140;
cin>> b;
break;
}
case 'p':
case 'P':
{
b=100;
cin>> b;
break
}
}
return b;
}

int recieve();
{
clrscr();
b=a*30;
c = b * a;
return c;


}

void display();
{
clrscr();
cout<<"The Final Price is " << c <<endl;
}






Last edited on
Move the seimicolons from the end of the function headers (below main()) to the end of the function prototypes (above main()). All of them.
Topic archived. No new replies allowed.