### Unresolved externals error

I ave no idea how to fix this error any help would be appreciated.

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110`` ``````//Libraries #include #include using namespace std; //Structure struct months { float rain; float high; float low; float average; }; enum mont{January, Febreuary, March, April, May, June, July, August, September,October, November, December }; void output(int); //Main begins here int main() { //Declare variables const int month= 12; months total[month]; float totalRain=0; int highest = 0; int lowest = 0; float totalAve = 0; mont day; //loop to find rain and temps for(day=January; day<12; day=static_cast(day+1)){ output(day);} for(int i=0;i<12;i++){ cout << endl; cout << "Enter total rain for this month: "; cin >> total[i].rain; cout << endl; cout << "Enter the highest temperature for this month: "; cin >> total[i].high; //input validation while(total[i].high<-100||total[i].high>140) { cout << endl; cout<<"Invalid entry-must be between -100 through 140\n"; cout<<"high temperature: "; cin>>total[i].high; cout << endl; } cout << endl; cout << "Enter the lowest temperature for this month: "; cin >> total[i].low; //Input validation while(total[i].low<-100||total[i].low>140) { cout << endl; cout<<"Invalid entry-must be between -100 through 140\n"; cout<<"high temperature: "; cin>>total[i].low; cout << endl; } //Calulate the average temperature cout << endl; cout << endl; total[i].average = (total[i].high+total[i].low)/2; cout <<"The avearge temperature of this month is: " << total[i].average << " degrees"; cout << endl; cout << endl; totalRain+=total[i].rain; totalAve +=(total[i].average)/12; if(total[i].high>total[highest].high) { highest=i; } if(total[i].low
Line 17:
 `` `` ``void output(int);``

Line 100:
 `` `` ``void output(mont n)``

The prototype says the function takes an `int` parameter,but the definition says it takes a `mont`.

Keep them consistent - `mont` on both lines, and it should be fine.
I didn't even notice that, thanks helped a lot.
Topic archived. No new replies allowed.