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



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. but include<iostream> is main function.
View Tutorial          By: glen at 2009-02-03 22:19:22

2. Hibernate with annotations and QBE api reduced our
View Tutorial          By: Andrew at 2011-04-29 10:34:26

3. I need dumps for practice
View Tutorial          By: Sanket barge at 2011-06-17 10:05:16

4. This code works for me. But i have a doubt how to
View Tutorial          By: Daya at 2015-05-04 12:04:19

5. thank u.....
View Tutorial          By: DiptaRanjan at 2013-02-02 14:56:45

6. Plz send me steps to configure and run project to
View Tutorial          By: sandeep kale at 2009-04-08 07:23:45

7. Da program wont work if '#' is the first character
View Tutorial          By: Kala at 2012-09-05 00:24:59

8. very nice thank you so much my dude
View Tutorial          By: mohd at 2010-07-28 02:40:23

9. Hello Ramlak, I am too getting
java.lang.U

View Tutorial          By: Amruta at 2008-11-07 23:56:17

10. The code sample in this tutorial is good. It would
View Tutorial          By: Anon at 2009-06-05 03:36:59