Welcome to Dream.In.Code
Become a C++ Expert!

Join 150,233 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,304 people online right now. Registration is fast and FREE... Join Now!




Current Month, Day and Year Program for Biginner

 
Reply to this topicStart new topic

Current Month, Day and Year Program for Biginner

salman
21 Nov, 2007 - 12:50 AM
Post #1

New D.I.C Head
*

Joined: 21 Nov, 2007
Posts: 19


My Contributions
#include <dos.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
struct date d;
clrscr ();
getdate(&d);
printf("The current year is: %d\n", d.da_year);
printf("The current day is: %d\n", d.da_day);
printf("The current month is: %d\n", d.da_mon);
getch ();
}
User is offlineProfile CardPM
+Quote Post

jjhaag
RE: Current Month, Day And Year Program For Biginner
21 Nov, 2007 - 12:55 AM
Post #2

me editor am smartastic
Group Icon

Joined: 18 Sep, 2007
Posts: 1,789



Thanked: 2 times
Dream Kudos: 775
Expert In: C,C++

My Contributions
uh...salman? Do you have a question about all of these programs you're posting?

It seems that perhaps you're looking to submit these as snippets...in which case, you should probably do so by clicking on the Snippets button in the banner at the top of the page. And, generally speaking, code without any sort of explanation or commenting doesn't do anyone a whole lot of good - you may want to address that.

If that assessment is way off base and you actually have a question, you may want to rethink your strategy and actually post a question as well.

And please use code tags like this: code.gif when posting source code. It makes it way easier to read, copy/paste, etc.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/9/09 06:09AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month