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



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. great, thnak you very much !!!!
View Tutorial          By: geek at 2014-05-11 00:10:32

2. Can anybody tell the steps to go ahead with the ex
View Tutorial          By: shikha at 2009-11-03 10:42:34

3. good.....not bad. .show me more programs.
View Tutorial          By: saranya at 2011-12-07 08:49:39

4. Hi guys.i have a simple doubt.
i want to ru

View Tutorial          By: Muthukumar at 2011-12-29 07:30:56

5. if the simple example with syntex than very easy t
View Tutorial          By: Rikunj suthar at 2011-08-31 06:57:17

6. very helpful.
View Tutorial          By: arjun at 2011-07-19 03:19:44

7. It is working. Thank u dear!!!
View Tutorial          By: Ashwani Rana at 2009-04-02 03:56:17

8. how to run file IO program?
isn't that must

View Tutorial          By: farah at 2009-08-24 02:41:59

9. hi ..........
the code is worked for me....

View Tutorial          By: pradeep at 2012-01-25 06:30:14

10. The example is wrong, because there are two sepera
View Tutorial          By: billGates at 2010-07-06 16:56:13