Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
THIS PROGRAM IS TO COMPARE THE TWO DATES GIVEN BY THE USER#include #include #include struct date { int dd; int mm; int yy; };date compare(date d1,date d2) { if (d1.dd { cout<<" 2nd date day is bigger "; } else if(d2.dd { cout<<" 1nd date day is bigger "; } else if(d1.dd==d2.dd) { cout<<" "; } if (d1.mm { cout<<" 2nd month is bigger "; } else { cout<<" 1nd month day is bigger "; } if(d1.yy>d2.yy) { cout<<" 1st date is bigger " ; } else if (d1.dd==d2.dd && d1.mm==d2.mm && d1.yy==d2.yy ); { cout<<" the dates are equal "; } if(d2.yy>d1.yy) { cout<<" 2nd date is bigger "; } }void main() { clrscr(); date d1,d2,ans; cout<<" enter the 1st date (dd/mm/yyyy) "; cin>>d1.dd; cin>>d1.mm; cin>>d1.yy; cout<<" enter the 2nd date (dd/mm/yyyy) "; cin>>d2.dd; cin>>d2.mm; cin>>d2.yy; compare(d1,d2); }
HOW CAN WE EASLY LEARN C++
Syntax rules for writing a destructor function Its name is the similar as that of the class to which it belongs, except that the first character of the name is the symbol t
Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''''''''{'''''''' and end wi
Inline functions, C++ provides inline functions to help reduce function_call overhead especially for small functions. The qualifier inline before function's return type in the f
Objective of this Program: (a) To learn more about modularization of a program into independent modules, (b) To use arrays in a program, (c) To get some experience with us
Write a function that has a single int parameter n and returns an int: 0 if n is negative, otherwise 1. You are not allowed to simply check the integer value, and should use the fu
Temperature Conversions. Problems 28 through30generate temperature-conversion tables. Use the following equations that give relationships between temperatures in degrees Fahrenheit
Define Functions with arguments and no return values The calling function will read a data from the terminal and pass it on to called as function and this will work good as the
c program to construct a structure: struct sensus { char name[30]; long int population;
I require a flowchart for push , & pop operation on stack using array
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd