C++ Programming Blog

 
 
 
#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();


}

    Related Post:
  1. Program to draw a Cubic Bezier Curve

  2. Program to solve the mystery of Towers of Hanoi using recursion

  3. Program to construct Lagrangess Interpolation Formula from the given distinct data points.

  4. Program to print an array before and after adding 5 to its contents using pointers

  5. Program to convert a Postfix Expression into an Infix Expression

  6. Program to draw a line using Parametric equations

  7. Program that takes input of 2 matrix rows and columns data and displays addition of it using + operator overloading

  8. Program to construct and display the Divided Difference Table from the given distinct data points.

  9. Program to illustrate the binary operator(-) overloading by creating an object of that class

  10. Program for function overloading

  11. Program to illusrate data conversion user defined data types using functions

  12. Program to show the projection of 3D objects using Cabinet Oblique Parallel Projection onto xy-plane (i.e. angle=30 deg)

  13. Program to display matrix table of n x m

  14. Program that uses this DFA and validates whether an entered string is valid float or not

  15. Program to draw different kinds of Thick Lines

  16. Program to reverse the content of an integer array

  17. Program to print a Single Ended Linked List in Original & Reverse order and sort it in Ascending & Decending Order

  18. Program that list of letters should be an alphabetical list of upper case letters followed by an alphabetical list of lower case letters

  19. Program that performs array operations like insert,delete, search, sort, merge and display

  20. Program that are completely portable across different operating systems

 
 
Didn't find what you were looking for? Find more on Example of Date