I have gotten a problem compiling. the program gives me an LNK2001 error so there seems to be a problem with my function but i cant seem to find it..i am posting part of the function that calls and the original function being called
void disp()
time_info start, end;
time_increment(hours_count,minute_count,day_count,month_count,year_count,start,end);
for (i=0;i<S;i++)
{
n++;
cout<< "Your call " <<n<<" started at " <<time_and_date[i].start.hours<<":"
<<time_and_date[i].start.minutes<<"/"
<<time_and_date[i].start.day<<"/"<<time_and_date[i].start.month
<<"/" << time_and_date[i].start.year;
cout<< " and ended at "<<time_and_date[i].end.hours<<":"<<time_and_date[i].end.minutes<<"/"
<<time_and_date[i].end.day<<"/"<<time_and_date[i].end.month<<"/"
<< time_and_date[i].end.year<<endl<<endl;
cout<< "The duration is " << hours[i] << " Hour(s) and " <<minutes[i] <<" Minutes"<<endl<<endl;
hours_count=hours[i]+hours_count;
minute_count=minutes[i]+minute_count;
rate=call_cost();
}
here is part of the function being called...the code is half because the procedure in the for loop is repeated for hours, days e.t.c
void time_increment(int& hours_count,int&minute_count, double& day_count,double& month_count,double& year_count,time_info& start, time_info& end)
if (!equality())
if (sec_count = 60)
for(i=0;i<S;i++)
{
temp_start=time_and_date[i].start.minutes;
temp_end=time_and_date[i].end.minutes;
for(a=temp_start;a<temp_end;a++)
{
minute_count++;
minutes[i]=minute_count;
}
}