All I want is for the user to put in a fraction then for it to display it.

#include <iostream> using namespace std; struct Fraction { int whole, denominator, numerator; }; int main() { int enterFractionValue(); void displayFraction(); displayFraction(); return 0; } int enterFractionValue (Fraction f) { cout<<"Enter the numerator: "; cin>> f.numerator; cout<<"Enter the denominator: "; cin>> f.denominator; while(f.denominator==0) { cout<<"You entered a zero for the denominator, enter again: "; cin>>f.denominator; } return f.denominator; } void displayFraction() { int enterFractionValue(); cout<< "Your number is "<<enterFractionValue()<<endl; }

I get this error

Case projec.obj : error LNK2019: unresolved external symbol "int __cdecl enterFractionValue(void)" ([email protected]@YAHXZ) referenced in function "void __cdecl displayFraction(void)" ([email protected]@YAXXZ)