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 ASK USER TO INPUT TWO DATE & PRODUCE A NEW DATE */#include #include struct date { int dd; int yy; int mm; };date add(date d1,date d2) { date temp; temp.dd=d1.dd+d2.dd; temp.mm=d1.mm+d2.mm; temp.yy=d1.yy+d2.yy; if(temp.dd>=30) { temp.dd-=30; temp.mm++; } else if(temp.dd>=31) { temp.dd-=31; temp.mm++; } else if(temp.dd>=28) { temp.dd-=28; temp.mm++; } if(temp.mm>=12) { temp.mm-=12; temp.yy++; } return temp; }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; ans=add(d1,d2); cout<<" new date:-"< }
The Preprocessor Directives A preprocessor directive which starts with a hash '#' ,is an instruction to the preprocessor, which acts on the source code before the compilation p
program that counts the number of occurrences of the string in the n-th padovan string p(n)
Explain Rules for constructing variable names? The Rules for constructing variable names : a) A variable name is any combination of alphabets, 0 to 9 digits and undersc
Can I drop the [] while deleteing array of some built-in type (char, int, etc)? A: No. you can't Sometimes programmers think that the [] in the delete[] p only present so the
You are to develop a Clinic System. 1. Identify and briefly explain the objects, classes, methods and attributes for the Clinic System. 2. Draw a use case diagram to represen
Question 1 Describe the theory behind class templates and function templates along with relevant programming examples Question 2 With the help of suitable programming example
how many types of loops are there and whay are they and what are its uses
What is the difference among malloc/free and new/delete? A: Malloc/free do not know about destructors and constructors. New & delete create and destroy objects, whereas malloc &
What's the order that objects in an array are destructed? Need assistance please explain it with example.
minimum shelf
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