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:

VTG MURANO CASED TALL  HEAVY STRIPPED COLORFUL ITALIAN VASE CELOTTO ORG LABEL
VTG MURANO CASED TALL HEAVY STRIPPED COLORFUL ITALIAN VASE CELOTTO ORG LABEL
$155.00
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
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
$54.14
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.38
VINTAGE BOHEMIAN Germany CASED art GLASS HANDPAINTED VASE landscape scenes label
VINTAGE BOHEMIAN Germany CASED art GLASS HANDPAINTED VASE landscape scenes label
$124.99
LISKEARD Cased Amethyst Knobble B1 Art Glass Vase by Jim Dyer w Label Base 1972
LISKEARD Cased Amethyst Knobble B1 Art Glass Vase by Jim Dyer w Label Base 1972
$29.84
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
$450.00
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.34
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
$77.50
Vtg Holmegaard White Cased Glass 10 Danish Modern Vase PAPER LABEL Otto Brauer
Vtg Holmegaard White Cased Glass 10 Danish Modern Vase PAPER LABEL Otto Brauer
$125.00
TOSCANY EMPOLI ITALIAN CASED GLASS VASE LABEL RED WHITE 11
TOSCANY EMPOLI ITALIAN CASED GLASS VASE LABEL RED WHITE 11
$31.96
Kamei Studios Cased Art Glass Vase Stunning With Label numbered 85122
Kamei Studios Cased Art Glass Vase Stunning With Label numbered 85122
$200.00
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.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
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
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 Murano Glass Dish Multi Colored Cased Silver Aventurine Castle Label
Vintage Murano Glass Dish Multi Colored Cased Silver Aventurine Castle Label
$79.95
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
$66.74
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
$118.65
RARE Matching MURANO BOWL ASHTRAY  MINI VASE Cased Glass FRATELLI TOSO LABELS
RARE Matching MURANO BOWL ASHTRAY MINI VASE Cased Glass FRATELLI TOSO LABELS
$399.00
Murano Seguso Gold Aventurine Pair Cased Birds Figurines With Label Mid Century
Murano Seguso Gold Aventurine Pair Cased Birds Figurines With Label Mid Century
$167.44
Murano Cased Glass Bowl Green Swirls  Foil with Label
Murano Cased Glass Bowl Green Swirls Foil with Label
$49.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
$29.63
12 inch Empoli Italian CARAMEL BUTTERSCOTCH case glass vaseoriginal label
12 inch Empoli Italian CARAMEL BUTTERSCOTCH case glass vaseoriginal label
$43.98
Randsfjord Glass Norway Cobalt Cased Glass Controlled Bubble Vase Label
Randsfjord Glass Norway Cobalt Cased Glass Controlled Bubble Vase Label
$75.00
MID CENTURY VENETIAN ART GLASS BOWL ASHTRAY CASED MIDDLE W LABEL BEAUTIFUL AMBER
MID CENTURY VENETIAN ART GLASS BOWL ASHTRAY CASED MIDDLE W LABEL BEAUTIFUL AMBER
$18.99
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
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
FENTON PINK CASED DOT OPTIC VASE 5 TALL WITH OLD FENTON STICKER LABEL
FENTON PINK CASED DOT OPTIC VASE 5 TALL WITH OLD FENTON STICKER LABEL
$99.99
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
Italian Murano Art Glass Lighter EVANS Mid Century Label Blue Cased White VTG
Italian Murano Art Glass Lighter EVANS Mid Century Label Blue Cased White VTG
$68.40
Vintage POLAND Bohemian Glass Tall COMPOTE White Cased Cut to Amber LABEL LK
Vintage POLAND Bohemian Glass Tall COMPOTE White Cased Cut to Amber LABEL LK
$210.00
Vintage Czechoslovakia Bohemian Glass VASE White Cased Cut to Amber LABEL LK
Vintage Czechoslovakia Bohemian Glass VASE White Cased Cut to Amber LABEL LK
$185.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
$39.60
MURANO DOUBLE CASED GLASS CRANBERRY RED 7 ART HEAVY GLASS BOWL NO LABEL
MURANO DOUBLE CASED GLASS CRANBERRY RED 7 ART HEAVY GLASS BOWL NO LABEL
$64.99
Vilca Lead Crystal Frog Heavy Green Clear Cased with Label
Vilca Lead Crystal Frog Heavy Green Clear Cased with Label
$89.99
1976 1978 Fenton Art Glass Rosalene Frosted Pink Cased Glass Vase Orig Label
1976 1978 Fenton Art Glass Rosalene Frosted Pink Cased Glass Vase Orig Label
$36.19


Recently Purchased Case Label:


murano vintage seguso amber brown cased glass bird duck italy label, vtg holmegaard white cased glass 10 danish modern vase paper label otto brauer, val st lambert cranberry pink cased swirly art glass bowl orig label and signed, studio art glass scent bottlepinkcasedgilted swirl leaf stopperitalyw label, ajka cranberry cased cut to clear crystal liqueur cordial glass new with label, murano glass salviati bowl in lattimo and aventurine cased in clear glass label, murano italy cased art glass bowl candy green labeled ice t, liskeard cased amethyst knobble b1 art glass vase by jim dyer w label base 1972, tall murano sommerso blue amp; yellow glass vase cased in clear with original label, waterford cobalt blue cased crystal clarendon wine goblets 1st ed new w labels, murano cased art glass basket turquoise copper aventurine white original label, murano lavorazione 8 pastel cased glass vase mint with label, krosno blue modernist style cased glass vase with label, vintage elme glasbruk cased glass swan figurine with label, murano double cased glass cranberry red 7 art heavy glass bowl no label, fenton pink cased dot optic vase 5 tall with old fenton sticker label, vintage kanawha hand crafted amber satin cased glass pear shaped pitcher wlabel, murano cased glass bowl green swirls amp; foil with label, murano seguso gold aventurine pair cased birds figurines with label mid century, rare matching murano bowl ashtray amp; mini vase cased glass fratelli toso labels, 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, white cased cut to cranberry berchtesgaden kristall 3 14 vase wlabels, bohemian czech crystal bell white cut to green cased amp; painted original label, gler bervik cased art glass penguin figurine handmade in iceland with label, vntg pairpoint 55 blown cased glass vase wpulled feather threading orig label, 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, vtg murano cased tall amp; heavy stripped colorful italian vase celotto org label, 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, mid century venetian art glass bowlashtray cased middle wlabel beautiful amber, ryd 1970s scandinavian blue glass cased vase label, italian murano art glass lighter evans mid century label blue cased white vtg, 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, vintage italian murano quadruple layer cased sommerso geode bowl with label, 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, vtg murano glass vase cased teal brown wlabel 17 14 rossini empoli 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 cased cut to amber label lk, vintage poland bohemian glass tall compote white cased cut to amber label lk



Comments are closed.