Computer Science Canada
Programming C, C++, Java, PHP, Ruby, Turing, VB
Username:
Password:
Register
Wiki
Blog
Search
Turing
Chat Room
Members
case
Index
->
Programming, C++
->
C++ Help
Author
Message
CHUTHAN20
Posted:
Wed Mar 22, 2006 6:48 pm
Post subject: case
code:
switch(m)
{
case 1 : cout<<"January";
break;
case 2 : cout<<"February";
}
Instead of using case 1, case 2 or case 3, can i use a word like
code:
switch (m)
{
January: cout <<"1st month of the year.";
break;
February: cout<<"2nd month of the year.";
}
Sponsor
Sponsor
CHUTHAN20
Posted:
Wed Mar 22, 2006 7:17 pm
Post subject: (No subject)
i forgot to mention that i use turbo c++ v4.5
Andy
Posted:
Wed Mar 22, 2006 8:09 pm
Post subject: (No subject)
ummm if i understand your question correctly, then you can use ENUMs to enumerate January, Februrary and so on as 1,2,3...
CHUTHAN20
Posted:
Thu Mar 23, 2006 5:43 pm
Post subject: (No subject)
andy... a example with a code would be really help full.
MysticVegeta
Posted:
Thu Mar 23, 2006 7:10 pm
Post subject: (No subject)
why cant you have an array of months in strings. then you just need to go
month = monthArray[m];
wtd
Posted:
Thu Mar 23, 2006 7:28 pm
Post subject: (No subject)
CHUTHAN20 wrote:
i forgot to mention that i use turbo c++ v4.5
Anyu particular reason you haven't joined the rest of the world in the 21st century?
Imm0rtal
Posted:
Fri Mar 24, 2006 1:04 am
Post subject: (No subject)
wtd wrote:
CHUTHAN20 wrote:
i forgot to mention that i use turbo c++ v4.5
Anyu particular reason you haven't joined the rest of the world in the 21st century?
.NET doesn't port to Linux is my excuse.
wtd
Posted:
Fri Mar 24, 2006 1:16 am
Post subject: (No subject)
What does .NET have to do with C++?
Sponsor
Sponsor
md
Posted:
Fri Mar 24, 2006 9:43 am
Post subject: (No subject)
And .NET
does
port to linux it's called mono.
CHUTHAN20
Posted:
Sun Mar 26, 2006 5:33 pm
Post subject: (No subject)
wtd wrote:
CHUTHAN20 wrote:
i forgot to mention that i use turbo c++ v4.5
Anyu particular reason you haven't joined the rest of the world in the 21st century?
cuz... i am begineer to c++ and.. i started to learn with turbo first.. so now its kinda hard to switch. but i like turbo c++
Tony
Posted:
Sun Mar 26, 2006 5:50 pm
Post subject: (No subject)
CHUTHAN20 wrote:
cuz... i am begineer to c++ and.. i started to learn with turbo first.. so now its kinda hard to switch. but i like turbo c++
well that's like saying that
"well hey, I've started with DOS for an OS first..."
. Now I truly hope that you're using something better for your OS.
Tony's
programming blog
. DWITE - a
programming contest
.
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Index
->
Programming, C++
->
C++ Help
Page
1
of
1
[ 11 Posts ]
Jump to:
Select a forum
CompSci.ca
------------
- Network News
- General Discussion
General Forums
-----------------
- Hello World
- Featured Poll
- Contests
Contest Forums
-----------------
- DWITE
- [FP] Contest 2006/2008
- [FP] 2005/2006 Archive
- [FP] 2004/2005 Archive
- Off Topic
Lounges
---------
- User Lounge
- VIP Lounge
Programming
--------------
- General Programming
General Programming Forums
--------------------------------
- Functional Programming
- Logical Programming
- C
C
--
- C Help
- C Tutorials
- C Submissions
- C++
C++
----
- C++ Help
- C++ Tutorials
- C++ Submissions
- Java
Java
-----
- Java Help
- Java Tutorials
- Java Submissions
- Ruby
Ruby
-----
- Ruby Help
- Ruby Tutorials
- Ruby Submissions
- Turing
Turing
--------
- Turing Help
- Turing Tutorials
- Turing Submissions
- PHP
PHP
----
- PHP Help
- PHP Tutorials
- PHP Submissions
- Python
Python
--------
- Python Help
- Python Tutorials
- Python Submissions
- Visual Basic and Other Basics
VB
---
- Visual Basic Help
- Visual Basic Tutorials
- Visual Basic Submissions
Education
-----------
- Student Life
Graphics and Design
-----------------------
- Web Design
Web Design Forums
---------------------
- (X)HTML Help
- (X)HTML Tutorials
- Flash MX Help
- Flash MX Tutorials
- Graphics
Graphics Forums
------------------
- Photoshop Tutorials
- The Showroom
- 2D Graphics
- 3D Graphics
Teams
------
- dTeam Public
Style:
Appalachia
blueSilver
eMJay
subAppalachia
subBlue
subCanvas
subEmjay
subGrey
subSilver
subVereor
Search:
You can syndicate this boards posts using the file
backend.php
or view the
topic map using sitemap.php.
Terms of Use
|
Privacy Policy