Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Switch syntax e...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 17 Topic 911 of 1161
Post > Topic >>

Switch syntax error-

by "Lumina" <tinalsmith66@[EMAIL PROTECTED] > Mar 5, 2007 at 08:43 PM

I need some assistance on getting past C2059 sytax error-please help


#include <stdio.h>
#include <ctype.h>

int main(void)
{
int count;

//local delcarations
	char countE = 'E';
	char countA = 'A';
	char countI = 'I';
	char ch ;
	return 0;
}// main

//Statements *

	switch ( count)
	{
	   case 'E': count E++;
	   case 'e':
		     break;

	   case 'A': count A++;
	   case 'a':
		     break;

	   case 'I': count I++;
	   case 'i':
		     break;


	   default: printf ("print Error--Not A, E, or I\a\n");
		     break;

	 }//switch
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 17 Posts in Topic:
Switch syntax error-
"Lumina" <ti  2007-03-05 20:43:23 
Re: Switch syntax error-
"Chinese Developer&q  2007-03-10 12:48:12 
Re: Switch syntax error-
=?ISO-8859-1?Q?Hans-Bernh  2007-03-10 12:48:52 
Re: Switch syntax error-
Keith Thompson <kst-u@  2007-03-10 12:48:53 
Re: Switch syntax error-
Clark Cox <clarkcox3@[  2007-03-10 12:48:53 
Re: Switch syntax error-
"Michael Tiomkin&quo  2007-03-10 12:48:54 
Re: Switch syntax error-
Keith Thompson <kst-u@  2007-03-12 22:02:41 
Re: Switch syntax error-
"Douglas A. Gwyn&quo  2007-03-10 12:48:54 
Re: Switch syntax error-
Barry Schwarz <schwarz  2007-03-10 12:48:55 
Re: Switch syntax error-
Kenneth Brody <kenbrod  2007-03-10 12:48:57 
Re: Switch syntax error-
"Arun" <arun  2007-03-10 12:48:57 
Re: Switch syntax error-
R Pradeep Chandran <se  2007-03-10 12:48:57 
Re: Switch syntax error-
Markus Moll <markus.mo  2007-03-10 12:48:59 
Re: Switch syntax error-
"ForestDB" <  2007-03-10 12:48:59 
Re: Switch syntax error-
Jack Klein <jackklein@  2007-03-10 12:48:56 
Re: Switch syntax error-
Jonathan Leffler <jlef  2007-03-10 12:48:56 
Re: Switch syntax error-
adrian.hawryluk@[EMAIL PR  2007-03-10 12:48:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 11:38:08 CDT 2008.