this is the part of my code that hass the error. the compiler (dev bloodshed C++) gives this error messageCode:time_t feed; feed = time (NULL);
"31 no match for call to `(std::string) (NULL)' "
i seem to be doing it right, so why the message?
this is the part of my code that hass the error. the compiler (dev bloodshed C++) gives this error messageCode:time_t feed; feed = time (NULL);
"31 no match for call to `(std::string) (NULL)' "
i seem to be doing it right, so why the message?
Do you have a string variable called time somewhere in the code above or in the #include'd headers? What happens when you use <ctime> and std::time?
You could also try
Code:time_t feed; feed = time( (time_t) NULL );
Your typecast would be incorrect, since the function expects a pointer, not a time_t instance.
Quzah.
Hope is the first step on the road to disappointment.