Case Label

error: "case label does not reduce to an integer constant", whats wrong?

heres my code:

printf("Search for:n");
scanf("%99s", search);
switch('search')
{
case "apple":
{
printf("An Apple is a fruit.");
break;
}
case "banana":
{
printf("seriously? you dont know what is a 'banana'?");
break;
}
default:
{
printf("check spelling ^^");
break;
}

just trying to make a simple search-er thingy in my program.
any idea whats wrong and how to fix it? (im still a newbie in C programming. still learning.^^)

Case statements use int values.
You have strings.

Have fun.

Find Case Label On eBay Below:

LOT OF 2 VINTAGE SNOWFLAKES CHINESE CASED GLASS VASE RED WITH LABEL RECTANGLE
LOT OF 2 VINTAGE SNOWFLAKES CHINESE CASED GLASS VASE RED WITH LABEL RECTANGLE
$9.99
Val St Lambert cranberry pink cased swirly Art Glass Bowl orig label and Signed
Val St Lambert cranberry pink cased swirly Art Glass Bowl orig label and Signed
$55.84
Pink Czech Art Glass Bowl Large Heavy Fruit Centerpiece Label Bohemian Cased
Pink Czech Art Glass Bowl Large Heavy Fruit Centerpiece Label Bohemian Cased
$49.99
VINTAGE ASEDA SWEDEN RUBY RED CASED ART GLASS TRUMPET VASE SCANDINAVIAN LABEL
VINTAGE ASEDA SWEDEN RUBY RED CASED ART GLASS TRUMPET VASE SCANDINAVIAN LABEL
$57.19
Vintage 11 Opaline Alabastro Pink Cased Art Glass Vase With Ardalt Italy Label
Vintage 11 Opaline Alabastro Pink Cased Art Glass Vase With Ardalt Italy Label
$19.95
VINTAGE BOHEMIAN Germany CASED art GLASS HANDPAINTED VASE landscape scenes label
VINTAGE BOHEMIAN Germany CASED art GLASS HANDPAINTED VASE landscape scenes label
$124.99
Huge 8 pound Murano Cased glass satinato vase Italy label polished pontil base
Huge 8 pound Murano Cased glass satinato vase Italy label polished pontil base
$328.50
FENTON PINK CASED BUBBLE OPTIC VASE 5 TALL WITH OLD FENTON STICKER LABEL
FENTON PINK CASED BUBBLE OPTIC VASE 5 TALL WITH OLD FENTON STICKER LABEL
$99.99
Murano tall sommerso blue  yellow glass vase cased in clear with original label
Murano tall sommerso blue yellow glass vase cased in clear with original label
$71.43
TOSCANY EMPOLI ITALIAN CASED GLASS VASE LABEL RED WHITE 11
TOSCANY EMPOLI ITALIAN CASED GLASS VASE LABEL RED WHITE 11
$31.96
Hand Made Bohemian Czech Republic Cased Cranberry Art Glass Vase with Label WOW
Hand Made Bohemian Czech Republic Cased Cranberry Art Glass Vase with Label WOW
$89.99
Kamei Studios Cased Art Glass Vase Stunning With Label numbered 85122
Kamei Studios Cased Art Glass Vase Stunning With Label numbered 85122
$200.00
NICE RYD SWEDISH CASED GLASS HANDLED BASKET STYLE DOWL DISH  ORIGINAL LABEL
NICE RYD SWEDISH CASED GLASS HANDLED BASKET STYLE DOWL DISH ORIGINAL LABEL
$6.48
Murano 5 Lobed Art Glass Bowl Ribbed Red Silver Flecks Cased Clear Glass LABEL
Murano 5 Lobed Art Glass Bowl Ribbed Red Silver Flecks Cased Clear Glass LABEL
$36.37
White Cased Holmegaard Carnaby Ball Vase Per Lutken Labeled Danish Retro Design
White Cased Holmegaard Carnaby Ball Vase Per Lutken Labeled Danish Retro Design
$324.72
Italian art glass satin pink cased bell w labels 6 h
Italian art glass satin pink cased bell w labels 6 h
$24.99
Italian art glass pink to white cased bell with labels 6 h
Italian art glass pink to white cased bell with labels 6 h
$24.99
White Cased Cut to Cranberry Berchtesgaden Kristall 3 1 4 Vase w labels
White Cased Cut to Cranberry Berchtesgaden Kristall 3 1 4 Vase w labels
$99.95
Vintage Bohemian Czech White Overlay Cut to Green Cased Glass Floral Bell Label
Vintage Bohemian Czech White Overlay Cut to Green Cased Glass Floral Bell Label
$19.99
Bohemian Czech Crystal Bell White Cut to Green Cased  Painted Original Label
Bohemian Czech Crystal Bell White Cut to Green Cased Painted Original Label
$28.80
Gler Bervik Cased Art Glass Penguin Figurine Handmade In Iceland With Label
Gler Bervik Cased Art Glass Penguin Figurine Handmade In Iceland With Label
$9.95
Set of 2 Vintage Czech Cased Glass Pink  White Bud Vases Original Label c1930
Set of 2 Vintage Czech Cased Glass Pink White Bud Vases Original Label c1930
$69.99
Peacock Blue Cased Glass Cylinder Vase 10 Modernist Empoli Style No Label
Peacock Blue Cased Glass Cylinder Vase 10 Modernist Empoli Style No Label
$31.89
12 inch Empoli Italian CARAMEL BUTTERSCOTCH case glass vaseoriginal label
12 inch Empoli Italian CARAMEL BUTTERSCOTCH case glass vaseoriginal label
$43.98
Vntg PAIRPOINT 55 BLOWN CASED GLASS VASE w PULLED FEATHER THREADING ORIG LABEL
Vntg PAIRPOINT 55 BLOWN CASED GLASS VASE w PULLED FEATHER THREADING ORIG LABEL
$72.50
Randsfjord Glass Norway Cobalt Cased Glass Controlled Bubble Vase Label
Randsfjord Glass Norway Cobalt Cased Glass Controlled Bubble Vase Label
$75.00
Vintage Murano Glass Dish Multi Colored Cased Silver Aventurine Castle Label
Vintage Murano Glass Dish Multi Colored Cased Silver Aventurine Castle Label
$79.95
Vtg Murano Glass Bowl Basket Cased Lattimo in Clear glass w purple Bubbles Label
Vtg Murano Glass Bowl Basket Cased Lattimo in Clear glass w purple Bubbles Label
$127.73
Genuine Murano Glass Cased Bowl Free Style Clear to Yellow with Murano Label
Genuine Murano Glass Cased Bowl Free Style Clear to Yellow with Murano Label
$71.84
Murano Cased Glass Bowl Green Swirls  Foil with Label
Murano Cased Glass Bowl Green Swirls Foil with Label
$49.95
Ann Primrose Cased Art Glass Vase Murano Style Handblown Multi Color 18 w Label
Ann Primrose Cased Art Glass Vase Murano Style Handblown Multi Color 18 w Label
$189.94
KAGAMI CRYSTAL VINTAGE 1953 WITH LABEL NEVER USED 6 SHOT6 CHAMPAYNEIN CASES
KAGAMI CRYSTAL VINTAGE 1953 WITH LABEL NEVER USED 6 SHOT6 CHAMPAYNEIN CASES
$700.00
Handcrafted Texture Art Glass Taupe Cased Bowl Applied Apostrophes Sala label 7
Handcrafted Texture Art Glass Taupe Cased Bowl Applied Apostrophes Sala label 7
$33.98
Blue Fenton Cased Glass Milk Pitcher Hand Painted Artist Signed Original Label
Blue Fenton Cased Glass Milk Pitcher Hand Painted Artist Signed Original Label
$79.00
Vintage Kanawha Hand Crafted Amber Satin Cased Glass Pear Shaped Pitcher W Label
Vintage Kanawha Hand Crafted Amber Satin Cased Glass Pear Shaped Pitcher W Label
$6.95
Vintage POLAND Bohemian Glass Tall COMPOTE White Cut to Cased Amber with LABEL
Vintage POLAND Bohemian Glass Tall COMPOTE White Cut to Cased Amber with LABEL
$185.00
Vintage Czechoslovakia Bohemian Glass VASE White Cut to Cased Amber with LABEL
Vintage Czechoslovakia Bohemian Glass VASE White Cut to Cased Amber with LABEL
$145.00
VINTAGE SNOWFLAKES CHINESE CASED GLASS VASE RED 1950s WITH LABEL
VINTAGE SNOWFLAKES CHINESE CASED GLASS VASE RED 1950s WITH LABEL
$35.00
Arte Murano Italy Bowl Freeform Vase 10in Venetian Art Glass Cased Colors Label
Arte Murano Italy Bowl Freeform Vase 10in Venetian Art Glass Cased Colors Label
$45.00
Vintage Retro Modernist Old Colony Poland Cased Art Glass Bowl Label
Vintage Retro Modernist Old Colony Poland Cased Art Glass Bowl Label
$15.83


Recently Purchased Case Label:


vintage makora krosno green cased art glass vase with original makers label, nice ryd swedish cased glass handled basket style dowl dish amp; original label, hand made bohemian czech republic cased cranberry art glass vase with label wow, murano italy cased art glass bowl candy green labeled ice t, murano cased art glass basket turquoise copper aventurine white original label, murano glass salviati bowl in lattimo and aventurine cased in clear glass label, murano lavorazione 8 pastel cased glass vase mint with label, ajka cranberry cased cut to clear crystal liqueur cordial glass new with label, tall murano sommerso blue amp; yellow glass vase cased in clear with original label, midcentury murano vaseline cased red glass handled vase original label nr, midcentury murano vaseline cased red glass tall handled ewer original label nr, vintage elme glasbruk cased glass swan figurine with label, krosno blue modernist style cased glass vase with label, murano double cased glass cranberry red 7 art heavy glass bowl no label, vintage kanawha hand crafted amber satin cased glass pear shaped pitcher wlabel, handcrafted texture art glass taupecased bowlapplied apostrophessala label7, kagami crystal vintage 1953 with label never used 6shot6champaynein cases, murano cased glass bowl green swirls amp; foil with label, genuine murano glass cased bowl free style clear to yellow with murano label, vtg murano glass bowlbasket cased lattimo in clear glass w purple bubbles label, vintage murano glass dish multi colored cased silver aventurine castle label, vntg pairpoint 55 blown cased glass vase wpulled feather threading orig label, gler bervik cased art glass penguin figurine handmade in iceland with label, bohemian czech crystal bell white cut to green cased amp; painted original label, vintage bohemian czech white overlay cut to green cased glass floral bell label, white cased cut to cranberry berchtesgaden kristall 3 14 vase wlabels, italian art glass pink to white cased bell with labels 6 h, italian art glass satin pink cased bell wlabels 6 h, murano 5 lobed art glass bowl ribbed red silver flecks cased clear glass label, murano tall sommerso blue amp; yellow glass vase cased in clear with original label, fenton pink cased bubble optic vase 5 tall with old fenton sticker label, vintage 11 opaline alabastro pink cased art glass vase with ardalt italy label, val st lambert cranberry pink cased swirly art glass bowl orig label and signed, exquisite val st lambert small ftd vase cased amethyst cut to clear label, exquisite val st lambert cocktail pitcher cased chartreuse cut to clear label, exquisite val st lambert cocktail pitcher cased cranberry cut to clear label, waterford cobalt blue cased crystal clarendon wine goblets 1st ed new w labels, vintage retro modernist old colony poland cased art glass bowl label, white cased holmegaard carnaby ball vase per lutken labeled danish retro design, vilca lead crystal frog heavy green clear cased with label, peacock blue cased glass cylinder vase 10 modernist empoli style no label, 1976 1978 fenton art glass rosalene frosted pink cased glass vase orig label, ryd 1970s scandinavian blue glass cased vase label, pink czech art glass bowl large heavy fruit centerpiece label bohemian cased, vintage bohemian germany cased art glass handpainted vase landscape scenes label, set of 2 vintage czech cased glass pink amp; white bud vases original label c1930, toscany empoli italian cased glass vase label red white 11, lot of 2 vintage snowflakes chinese cased glass vase red with label rectangle, oy kumela cased azure blue art glass vase riihimaki finland with label, arte murano italy bowl freeform vase 10in venetian art glass cased colors label, kamei studios cased art glass vase stunning with label numbered 85122, 12 inch empoli italian caramelbutterscotch case glass vaseoriginal label, huge 8 pound murano cased glass satinato vase italy label polished pontil base, vintage murano art glass sculpture bowl green cased gold original foil label, vintage aseda sweden ruby red cased art glass trumpet vase scandinavian label, blue fenton cased glass milk pitcher hand painted artist signed original label, ann primrose cased art glass vase murano style handblown multi color 18 w label, italian art glass white cased pedestal vase floral with original red label, rossini empoli murano vase cased glass teal brown original label 17 14 italy , vintage snowflakes chinese cased glass vase red 1950s with label, randsfjord glass norway cobalt cased glass controlled bubble vase label, vintage czechoslovakia bohemian glass vase white cut to cased amber with label, vintage poland bohemian glass tall compote white cut to cased amber with label



Comments are closed.