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 A DATE & ALSO ASK FOR DAYS TO BE ADDED TO PRODUCE
#include #include struct date { int dd; int yy; int mm; };void main() { clrscr(); int day; date dot; cout<<" enter the date (dd/mm/yy) "; cin>>dot.dd>>dot.mm>>dot.yy; cout<<" input the days to be added "; cin>>day; dot.dd +=day; if (dot.mm ==1 || dot.mm ==3 || dot.mm ==5 || dot.mm ==7 || dot.mm ==8 || dot.mm ==10 || dot.mm ==12) { if(dot.dd>=31) { dot.dd-=31; dot.mm++; } } else if(dot.mm ==4 || dot.mm ==6 || dot.mm ==9 || dot.mm ==11) { if(dot.dd>=30) { dot.dd-=30; dot.mm++; } } else if (dot.mm ==2 && dot.yy%4==0) { dot.dd-=29; dot.mm++; } else { dot.dd-=28; dot.mm++; } if (dot.mm>12) { dot.mm-=12; dot.yy++; } cout<<" new date:- "< getch(); }
Reverse a string - C ++ program: Write a program in c to reverse a string. int main() { Stack theStack; String reverse("reverse"); cout
Problem Description There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometime
calculate skewness and kurtosis
Explain the Defination and Declaration of Union? Generally in terms the composition of a union may be defined as be as union tag { member 1; member 2; member m; }; Wh
Virtual Base Classes This ambiguity can be resolved if the class derived have only one copy of the class base. This can be done by making the base class a virtual class. This k
A: 1. By using const protects you against programming errors which inadvertently alter data. 2. By using const allows function to procedure const and non-const actu
A: No. There is nothing you can do in C++ which you cannot do in C. In spite of everything
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
You may work in pairs for this assignment. Submit only one project per team; both partners will receive the same grade. Also, you can earn up to 40 points (out of 25) on this assig
C language lets us do this in a structure definition by putting: bit length after the variable that is. struct packed_struct { unsigned int f1:1; unsigned int f2:1; unsigned
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