Logo 
Search:

C++ Programming Articles

Submit Article
Home » Articles » C++ Programming » Homework HelpRSS Feeds

Example of Date

Posted By: Evan Evans     Category: C++ Programming     Views: 2453

Program of example of Date.

Code for Example of Date in C++ Programming

#include <iostream.h>
#include <conio.h>
#include <dos.h>
#include <stdio.h>

void main()
{
   clrscr();
   struct date d;

   getdate(&d);

   int da;

   cout<<"Enter U R  graduation date";
   cin>>da;

   int dif=da-d.da_year;
   if(dif<0)
   {
    cout<<dif<<"is left";
   }
   if(dif>0)
   {
    cout<<dif<<" Year  completed";
   }
   getch();


}
  
Share: 

 
 
 

Didn't find what you were looking for? Find more on Example of Date Or get search suggestion and latest updates.

Evan Evans
Evan Evans author of Example of Date is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!