I'm trying to write a simple code using functions to convert temperatures from Fahrenheit to Celsius, I keep getting the error: Primary expression expected before 'float' on line 16 (centigrade = float ftoC(fahrenheit);
Shown below). Any help would be great.
Excellent thank you for your help, I have dyslexia so sometimes I don't spot the mistakes I make, especially when they are to do with spelling. Again thank you for your help.
For anybody looking for the correct code here it is:
#include <iostream>
#include <iomanip>
using namespace std;
float fToC(float degreesF = 32.0);
int main(){
float fahrenheit;
float centigrade;
cout << "Enter a Fahrenheit temperature:\t";
cin >> fahrenheit;