Hi,
i am stuck on how to take the return value from one funcn and use it in other 2 funcns.
in this case, i am getting return value from calctottime ,and wants to use it in calcmins and calcsecs.
thanks.....
Code:
int main()
{
....
cout<<"the total time is"<<calctottime( t1,t2,t3);
calcmins(totT);
calcsecs(totTa);
return 0;
}
int calctottime(int time,int time1 ,int time2)
{
........
totalTime=time+time1+time2;
return totalTime;
}
void calcmins(int totTime)
{
cout<<"the mins r"<<totTime/60<<endl;
}
void calcsecs(int totTimes)
{
cout<<"the seconds r"<<totTimes%60<<endl;
}