need help i am using watcom

#include <iostream.h>

float fToC(float degreesF = 32.0);

int main (void)
{
float fToC(float degreesF)
{
float degreesC = ((5.0/9.0)*(degreesF - 32.0));
return degreesC;
}
float fahrenheit, centigrade;

cout << "Enter a Fahrenheit temperature:\t";
cin >> fahrenheit;
centigrade = fToC(fahrenheit);
cout << fahrenheit << "F is" << centigrade << "C" << endl
cout << "Freezing point: " << fToC() << "C";

return 0;
}

This is the error log
cd C:\WATCOM
wmake -f C:\WATCOM\dave.mk -h -e
wpp386 arg.cpp -i="C:\WATCOM/h;C:\WATCOM/h/nt" -w4 -e25 -zq -od -d2 -6r -bt=nt -fo=.obj -mf -xs -xr
arg.cpp(7): Warning! W750: col(11) function prototype in block scope missing 'extern'
arg.cpp(7): Note! N751: col(11) function prototype is 'float ( float )'
arg.cpp(8): Error! E247: col(5) cannot redefine default argument for 'fToC'
arg.cpp(3): Note! N392: col(27) definition: 'float fToC( [float ])'
arg.cpp(8): Error! E006: col(5) syntax error; probable cause: missing ';'
arg.cpp(15): Error! E029: col(12) symbol 'fahrenheit' has not been declared
arg.cpp(18): Error! E006: col(5) syntax error; probable cause: missing ';'
Error(E42): Last command making (C:\WATCOM\arg.obj) returned a bad status
Error(E02): Make execution terminated
Execution complete


cant compile it please help
Multiple threads. http://www.cplusplus.com/forum/beginner/62639/ Please post only one thread with identical questions.
Topic archived. No new replies allowed.