Comment on Tutorial - Using switch Statements in C++ By Emiley J



Comment Added by : sheraz

Comment Added at : 2011-11-07 02:08:55

Comment on Tutorial : Using switch Statements in C++ By Emiley J
the tutorial is good and i am satisfied to it i want to learn how to use calender although i made it but i want to have some changes the programe is given below

#include<iostream.h>
#include<conio.h>
{
do
{
long date;
char c;
cout<< "enter oyur date ?";
cin>>date;
if (date%2==0)
cout<< "the day is monday";
if (date%2==1)
cout<< "the day is tuesday";
if (date%2==2)
cout<< "the day is wednesday";
if (date%2==3)
cout<< "the day is thursday";
if (date%2==4)
cout<< "the day is friday";
if (date%2==5)
cout<< "the day is saturday";
else
cout<< "you enter invalid date"
}
while (c !='e')
}


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. i need full program for connect oracle to struts l
View Tutorial          By: Munaver Basha at 2010-09-30 01:28:10

2. Simple and easy code..........
View Tutorial          By: mandalson at 2011-12-24 06:50:38

3. Very nice demo. thanks! :)
View Tutorial          By: Nikhil Gala at 2012-01-13 10:03:57

4. Being a freshman in blogging, I really appreciate
View Tutorial          By: tyu at 2009-09-03 08:12:32

5. hi
View Tutorial          By: raj at 2010-02-12 02:48:09

6. haiiiiiiiii sir , i have error in this program, er
View Tutorial          By: Vinod at 2012-07-31 12:23:19

7. Very good example .!
Ty

View Tutorial          By: Mprogrammer at 2014-11-25 12:10:21

8. Si AIZA DIN< DI MARUNONG MAGTURO
View Tutorial          By: Agnes at 2010-06-25 22:34:29

9. Oh! Emiley, thank you very much! There are two lo
View Tutorial          By: Alexey at 2009-04-09 14:17:31

10. fitst read fully and put comments
View Tutorial          By: prasant at 2009-10-07 06:16:19