31st Aug 2018, 11:25 AM
Hls
Hls - avatar
6 Answers
+ 1
It's a bit hard to read your code without any indenting. Your C++ program doesn't have a main function. IMHO, timediff local variables should all be declared as type time_t and then return the casted result as a long. Also, if your code isn't in anyway related to older C, just write timediff() and omit void.
31st Aug 2018, 12:14 PM
HoĂ ng Nguyễn Văn
HoĂ ng Nguyễn Văn - avatar
0
I have not read it but if there is something important in the programming it is the order, maybe if you forget your code and you understand it thoroughly, you will know why it does not work
31st Aug 2018, 11:57 AM
Ramphy Aquino Nova
Ramphy Aquino Nova - avatar
0
hi Ramphy! I do understand what is written there. the thing is that I got it from an actual book and I think the problem is that this is only one file. but asking for it help anyway
31st Aug 2018, 11:59 AM
Hls
Hls - avatar
0
Ok, hold on.
31st Aug 2018, 12:04 PM
Ramphy Aquino Nova
Ramphy Aquino Nova - avatar
0
I was the base of c ++ but I could not find the problem, I am more of python. The first thing I found is that the main method is missing
31st Aug 2018, 12:14 PM
Ramphy Aquino Nova
Ramphy Aquino Nova - avatar
0
exactly. that's why I'm asking if this just represents the source file o something
31st Aug 2018, 12:54 PM
Hls
Hls - avatar