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(); }
If you have computed a number (stored as a ?oating-point value) and want to display this on a plot (i.e. as a character string) you have to convert it into a STRING. That is we wan
Problem #1: plugging the memory leak. When you employ the "normal" new operator, for example Foo* p = new Foo(), the compiler generates some special code to manage the case while t
C program to print L diagonal triangle: void main() { int i=0,j=0; int arr[rows][cols]; for (i=0; i
A: The answer to this lies actually, how they used. Along ++i(PreIncrement) the variable is incremented and new value is returned. Thus it needs one instruction to increment the va
hello i have about 15 hours the dead line I Need a program in c language that''s determine the router ip or the gateway ip of the current NIC example the router ip is: 192.168.1.1
Program is to store first n natural no in a file: Write a program to store first n natural no in a file void main() { fstream file; file.open("studen
Temperature Conversions. Problems 28 through30generate temperature-conversion tables. Use the following equations that give relationships between temperatures in degrees Fahrenheit
How are postfix and prefix versions of operator++ () differentiated? A: The postfix version of operator++ () contain a dummy parameter of type int. The prefix version does not c
program that decode the sending smuggler string.
Hi i want to join as a expert .
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