Does anyone know a decent site for studying about ctime(or time.h) in c++ thats good and doesn't end up telling you its in C?:@ :-/
Cos' when I search on google and I when thought I had found a great site, its actually for C programmers. Any help would be appreciated. Thanks

Recommended Answers

All 2 Replies

What exactly is it you want to do with ctime. There isn't alot to it...and when you consider that ctime is justthe newest version of time.h that was written for C it's no wonder alot of the material out there is C based...because it's a C based header file.

None the less what exactly do you want to do?
http://www.cplusplus.com/reference/clibrary/ctime/
The above reference link may also help

Chris

>Cos' when I search on google and I when thought I had
>found a great site, its actually for C programmers.
The usage of the header is virtually identical between C and C++. The only difference is that if you use <ctime>, you need to remember that all of the names are in the std namespace. As such, you can safely use any of the C websites you found and learn what you need for use in C++.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.