do anyone know how to write code to display time like in the window

Recommended Answers

All 3 Replies

You can do this with the functions in the <ctime> header file.

i don't know how to use function in <ctime> . can u give me example??

See http://www.cplusplus.com/reference/clibrary/ctime/ (each of the functions has an example to go with it when you click on it)

Otherwise google for ctime or time.h (which is the C version of the header, but it's the same functions).

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.