First off, Hi to everyone I am brand new on this forum.
I was hoping some of you code geniuses might help a coding impaired individual like myself. I have to create this program that puts a timestamp on another program I previously created. Right now Im in the process of trying to obtain time using the gettimeofday function in C++ (We are doing this in Unix btw).
Anyways I have a small section of code ready to compile except i keep getting 2 particular errors. Perhaps if someone could help me in that regard and also give me some advice on how the code looks so far that'd be great...
Basically right now im just trying to properly use gettimeofday as well as pass the timeval structure defined as tv and the expanded time structure into the actual localtime function....however line 33, where I call the localtime function give me 2 particular errors.
1.) localtime was not declared in this scope
2.) expected primary expression before ')' token