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:

BERANEK SKRDLOVICE heavy cased glass VASE Ales Valner signed label Czech art
BERANEK SKRDLOVICE heavy cased glass VASE Ales Valner signed label Czech art
$58.44
Large Made in Italy Orange Coral Cased Glass Vase w Textured Designs Labeled
Large Made in Italy Orange Coral Cased Glass Vase w Textured Designs Labeled
$150.00
Murano Vintage Seguso Amber Brown Cased Glass Bird Duck Italy + Label
Murano Vintage Seguso Amber Brown Cased Glass Bird Duck Italy + Label
$22.13
Oy Kumela Cased Azure Blue Art Glass Vase Riihimaki Finland with Label
Oy Kumela Cased Azure Blue Art Glass Vase Riihimaki Finland with Label
$149.00
Bohemian CAMEO Or Case GLASS Czech White cut to Green Glass vase 65 Orig Label
Bohemian CAMEO Or Case GLASS Czech White cut to Green Glass vase 65 Orig Label
$45.98
AJKA Cranberry Cased Cut to Clear Crystal Liqueur Cordial Glass New with Label
AJKA Cranberry Cased Cut to Clear Crystal Liqueur Cordial Glass New with Label
$60.00
13 Sweeping Flame Bud Vase Sommerso Cased Oggetti W Original Label
13 Sweeping Flame Bud Vase Sommerso Cased Oggetti W Original Label
$14.99
Vintage 7 Tall Cased Crystal Cobalt Bud Vase Cut To Clear w Label Poland MINT
Vintage 7 Tall Cased Crystal Cobalt Bud Vase Cut To Clear w Label Poland MINT
$50.99
10 Bowl label Fenton Art Glass Black Rose Crest Pink cased Ebony Trim VTG Rare
10 Bowl label Fenton Art Glass Black Rose Crest Pink cased Ebony Trim VTG Rare
$135.00
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.53
Gler Bervik Cased Art Glass Penguin Figurine Handmade In Iceland With Label
Gler Bervik Cased Art Glass Penguin Figurine Handmade In Iceland With Label
$19.95
REDUCED Whitefriars Ruby Red Cased Knobbly Vase with Label
REDUCED Whitefriars Ruby Red Cased Knobbly Vase with Label
$39.00
Case Elite Arte Murano M Valente Crystal Paperweight Fish Label On Gift Idea
Case Elite Arte Murano M Valente Crystal Paperweight Fish Label On Gift Idea
$14.99
VINTAGE BOHEMIAN Germany CASED art GLASS HANDPAINTED VASE landscape scenes label
VINTAGE BOHEMIAN Germany CASED art GLASS HANDPAINTED VASE landscape scenes label
$124.99
Murano Cased Glass Bowl Green Swirls  Foil with Label
Murano Cased Glass Bowl Green Swirls Foil with Label
$49.95
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.91
RARE Matching MURANO BOWL ASHTRAY  MINI VASE Cased Glass FRATELLI TOSO LABELS
RARE Matching MURANO BOWL ASHTRAY MINI VASE Cased Glass FRATELLI TOSO LABELS
$439.00
VINTAGE MURANO GLASS BOWL CASED AVEM SILVER BLACK MID CENTURY MODERN ITALY Label
VINTAGE MURANO GLASS BOWL CASED AVEM SILVER BLACK MID CENTURY MODERN ITALY Label
$365.00
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
$360.00
Vintage Huge Jozefina Cased Art Glass Vase Hand Made Scalloped Edge With Label
Vintage Huge Jozefina Cased Art Glass Vase Hand Made Scalloped Edge With Label
$29.96
Set of 7 Italian cased glass moretti goblets grey with label
Set of 7 Italian cased glass moretti goblets grey with label
$150.00
Barbini Italian orange cased glass basket gold leaf bullcante label
Barbini Italian orange cased glass basket gold leaf bullcante label
$150.00
TOSCANY EMPOLI ITALIAN CASED GLASS VASE LABEL RED WHITE 11
TOSCANY EMPOLI ITALIAN CASED GLASS VASE LABEL RED WHITE 11
$39.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
$42.00
Kamei Studios Cased Art Glass Vase Stunning With Label numbered 85122
Kamei Studios Cased Art Glass Vase Stunning With Label numbered 85122
$200.00
Vintage Venitian Cased Art Glass Dish Ashtray Murano Red  Green Label
Vintage Venitian Cased Art Glass Dish Ashtray Murano Red Green Label
$46.50
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
$7.95
HUGE Alfredo Barbini Murano Cased Pink Raspberry Art Glass Shell Bowl label
HUGE Alfredo Barbini Murano Cased Pink Raspberry Art Glass Shell Bowl label
$140.00
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
$67.52
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
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
Murano Tri Fold Bowl w Foil Label Blown Amber White Cased Vintage Art Glass
Murano Tri Fold Bowl w Foil Label Blown Amber White Cased Vintage Art Glass
$24.99
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
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
$52.50
LEFTON EXCLUSIVE JAPAN 8 IN CASED RED ORANGE GLASS VASE APPLIED TRIM
LEFTON EXCLUSIVE JAPAN 8 IN CASED RED ORANGE GLASS VASE APPLIED TRIM
$31.12
50s Sea Glasbruk Kosta Sweden studio glass handmade Green cased bowl w Label
50s Sea Glasbruk Kosta Sweden studio glass handmade Green cased bowl w Label
$45.00
Vintage Elme Glasbruk Cased Glass Swan Figurine with Label
Vintage Elme Glasbruk Cased Glass Swan Figurine 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


Recently Purchased Case Label:


bohemian cobalt blue cut to clear cased hand cut crystal bell original label, 10 bowl label fenton art glass black rose crest pink cased ebony trim vtg rare, 13 sweeping flame bud vase sommerso cased oggetti w original label, case elite arte murano m valente crystal paperweight fish label on gift idea, new ajka xenia purple cased cut to clear crystal champagne flute wlabel, vintage 7 tall cased crystal cobalt bud vase cut to clear w label poland mint, murano glass salviati bowl in lattimo and aventurine cased in clear glass label, yugoslavia 24 crystal lead clear glass butterfly jewelry trinket case w label, pair of miniature fenton cased glass ruffled edge blue fan vases one w label, vintage murano baby glass duck in cased turquoise very cute and a worn label, murano cased art glass basket turquoise copper aventurine white original label, italian murano art glass lighter evans mid century label blue cased white vtg, murano lavorazione 8 pastel cased glass vase mint with label, nib waterford amethyst heart shape hand cooler crystal org label , nib waterford green heart shape hand cooler crystal w org label amp; case ireland, vintage elme glasbruk cased glass swan figurine with label, murano trifold bowl w foil label blown amber white cased vintage art glass, white cased cut to cranberry berchtesgaden kristall 3 14 vase wlabels, kagami crystal vintage 1953 with label never used 6shot6champaynein cases, genuine murano glass cased bowl free style clear to yellow with murano label, huge alfredo barbini murano cased pink raspberry art glass shell bowl label, vintage kanawha hand crafted amber satin cased glass pear shaped pitcher wlabel, bohemian czech crystal bell white cut to green cased amp; painted original label, barbini italian orange cased glass basket gold leaf bullcante label, set of 7 italian cased glass moretti goblets grey with label, vintage murano glass bowl cased avem silver black mid century modern italy label, murano 5 lobed art glass bowl ribbed red silver flecks cased clear glass label, murano cased glass bowl green swirls amp; foil with label, gler bervik cased art glass penguin figurine handmade in iceland with label, pink czech art glass bowl large heavy fruit centerpiece label bohemian cased, ajka cranberry cased cut to clear crystal liqueur cordial glass new with label, bohemian cameo or case glass czech white cut to green glass vase 65 orig label, murano vintage seguso amber brown cased glass bird duck italy label, beranek skrdlovice heavy cased glass vase ales valner signed label czech art, vtg fenton ruffled silver crest pink white cased bowl 1950s orig label c1950s, vintage bohemian germany cased art glass handpainted vase landscape scenes label, large made in italy orange coral cased glass vase w textured designs labeled, 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, vintage italian murano quadruple layer cased sommerso geode bowl with label, lefton exclusive japan 8 in cased red orange glass vase applied trim , rare matching murano bowl ashtray amp; mini vase cased glass fratelli toso labels, oy kumela cased azure blue art glass vase riihimaki finland with label, italian murano midcentury jug vase w cased orange color 13 paper 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, vintage huge jozefina cased art glass vase hand made scalloped edge with label, huge 8 pound murano cased glass satinato vase italy label polished pontil base, vintage venitian cased art glass dishashtray murano red amp; green label , 50s sea glasbruk kosta sweden studio glass handmade green cased bowl wlabel, vintage aseda sweden ruby red cased art glass trumpet vase scandinavian label, reduced whitefriars ruby red cased knobbly vase with label, blue fenton cased glass milk pitcher hand painted artist signed original label, vilca lead crystal frog heavy green clear cased with 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 rossini empoli murano cased glass vase teal brown wlabel 17 14, 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.