Change your code to this:
You didnt declare this in the beginning of the programCode:#include <iostream> using namespace std; void temp(double ctemp); int main() { double C; cout << "Enter your degrees in celsius: "; cin >> C; temp(C); cout << "Done!"; cin.get(); cin.get(); return 0; } void temp(double ctemp) { double F = ctemp * 1.8 + 32; cout << ctemp << " Celsius = " << F << "Fahrenheit."; }