here's the question...I have a function that returns a pointer to a structure...now I'm trying to send that info into my main function by assigning it to a variable. So in main I have
Which doesn't work assumably because I can't assign a value of type pointer to struct to a fundamental type (correct?)...so I convert it to:
time trip = sum(&day1, &day2);
Which also doesnt work, I'm assuming because if trip is a pointer I can't initialize it to the value of a function? I'm not sure why it doesn't work actually...and I was wondering if anyone had an answer for me...and also I was curious if it doesn't work for the second reason how would I make the variable trip accept a pointed to value?
time* trip = sum(&day1, &day2);
Phew...thanks yet again -Chap
PS - If I'm not being clear at all...feel free to insult me