•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 422,825 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,301 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 3854 | Replies: 6
![]() |
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,116
Reputation:
Rep Power: 38
Solved Threads: 929
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
•
•
Join Date: Nov 2006
Posts: 7
Reputation:
Rep Power: 0
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.
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.
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.
Only very ancient compilers have dos.h. The ANSI-standard functions in <time.h> are a much better bet.
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- 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



Linear Mode