![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jan 2007
Location: Hershey, the sweetest place on earth
Posts: 19
Rep Power: 0
![]() |
Switch statement and strings
Okay. I am a relatively new programmer here. I was wondering about the switch statement. Is it possible to use test a string in the switch statement like this:
switch(choice)
{
case 'House': ....
case 'Car': ...
case 'City': ...
}Thanks |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .NET Database Application | ReggaetonKing | Other Programming Languages | 10 | Jan 18th, 2007 3:08 PM |