| | |
Capture system date?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2006
Posts: 7
Reputation:
Solved Threads: 1
for dates, there is an inbuilt structure in dos.h
to get help in the cpp just get help on date
the date structure has just 3 items,day month and year.
there are in built functions to get current date
the following code will fill the structure item d1 with the current system date.
to know more about each data item in struct date just get help from your cpp program.
to get help in the cpp just get help on date
the date structure has just 3 items,day month and year.
there are in built functions to get current date
the following code will fill the structure item d1 with the current system date.
C++ Syntax (Toggle Plain Text)
date d1; getdate(&d1); cout<<d1.da_year<<d1.da_day<<d1.da_mon;//display date
to know more about each data item in struct date just get help from your cpp program.
•
•
•
•
for dates, there is an inbuilt structure in dos.h
to get help in the cpp just get help on date
the date structure has just 3 items,day month and year.
there are in built functions to get current date
the following code will fill the structure item d1 with the current system date.
C++ Syntax (Toggle Plain Text)
date d1; getdate(&d1); cout<<d1.da_year<<d1.da_day<<d1.da_mon;//display date
to know more about each data item in struct date just get help from your cpp program.
dwk
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
![]() |
Similar Threads
- how to capture the system idle time using java (Java)
- System Date Capturing (Java)
- how to capture the system idle time using c/c++ (C++)
- change system date (Pascal and Delphi)
- Setting system date and time using c++ (C++)
Other Threads in the C++ Forum
- Previous Thread: help w/ problem
- Next Thread: [c++/visual studio 2003]Array Declaration Issue
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






