Thread
:
Switch statement and strings
View Single Post
Apr 14th, 2007, 10:44 AM
#
3
RGCaldas
Newbie
Join Date: Nov 2006
Posts: 5
Rep Power:
0
But you can use something like this
char string[][] = {{"House"},{"Car"},{"City"}};
int op;
op = [funtion to get option]
switch (op){
case 0: ... House
case 1: ... Car
case 2: ... City
}
Hope it helps
RGCaldas
View Public Profile
Find More Posts by RGCaldas