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. Saved my life!
View Tutorial          By: Sahil Nair at 2013-09-21 09:26:54

2. Excellent explanation. How can I take input from t
View Tutorial          By: Joe at 2013-03-31 11:02:28

3. nice
View Tutorial          By: aish at 2011-05-06 07:30:09

4. I want to parse a xml content some think like bel
View Tutorial          By: sagar at 2011-04-20 00:59:06

5. good code
View Tutorial          By: neha at 2011-07-02 01:46:52

6. I am getting error in setContentView(R.layout.main
View Tutorial          By: Malick at 2013-06-30 06:57:30

7. Excellent Article.
View Tutorial          By: Praveen Kumar S at 2011-03-24 23:14:44

8. provided examples are very useful.
View Tutorial          By: Technical Guy at 2010-04-25 08:12:06

9. I Want To Know More About Windows Azure Advantages
View Tutorial          By: sathish at 2010-08-31 10:23:10

10. Can you send me the file please?
[email protected]

View Tutorial          By: laue at 2014-11-18 20:35:02