Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

Advertisements


website counter



C Program -changing system date


Posted Date: 10 Jun 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: Girish Patil       Member Level: Diamond
Rating:     Points: 2





/* changing system date */
#include
#include
#include
void main()
{
struct date d;
struct date reset;
struct date save_date;
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);

reset.da_day=15;
reset.da_mon=10;
reset.da_year=2003;

setdate(&reset);
printf("New Date to be set is :");
printf("%d:%d:%d\n",reset.da_year,reset.da_day,reset.da_mon);
// setdate(&save_date);

/* getdate(&d);
printf("The Current System Date : %d:%d:%d",d.da_day,d.da_mon,d.da_year); */
getch();
}






Responses

Author: Lenin    10 Jun 2008Member Level: Diamond   Points : 2
i think ur initial is C


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: C Program -Type Command Simulation
Previous Resource: C Program -Del Command simulation
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
Related Resources


Contact Us    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.