Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Help Pin
noder19-Mar-04 5:24
noder19-Mar-04 5:24 
GeneralRe: Dialog Help Pin
Michael P Butler18-Mar-04 21:46
Michael P Butler18-Mar-04 21:46 
GeneralRe: Dialog Help Pin
pavneet19-Mar-04 10:14
pavneet19-Mar-04 10:14 
GeneralVirtual Keystrokes Pin
Prince4218-Mar-04 13:46
sussPrince4218-Mar-04 13:46 
GeneralCounting files in a given location Pin
Ernesto D.18-Mar-04 12:52
Ernesto D.18-Mar-04 12:52 
GeneralRe: Counting files in a given location Pin
Ryan Binns18-Mar-04 13:04
Ryan Binns18-Mar-04 13:04 
GeneralRe: Counting files in a given location Pin
Anonymous18-Mar-04 19:05
Anonymous18-Mar-04 19:05 
Generalwierd error! Pin
Snyp18-Mar-04 12:47
Snyp18-Mar-04 12:47 
void player_move(){<br />
	int a = 0;<br />
g:	cout << "Enter valid move (1-9):";<br />
	cin	a; // line containing error<br />
	if(a >= 1 && a <= 9){<br />
		if(a == 1 && b1 == " ")<br />
			b1 == "O";<br />
		if(a == 2 && b2 == " ")<br />
			b2 == "O";<br />
		if(a == 3 && b3 == " ")<br />
			b3 == "O";<br />
		if(a == 4 && b4 == " ")<br />
			b4 == "O";<br />
		if(a == 5 && b5 == " ")<br />
			b5 == "O";<br />
		if(a == 6 && b6 == " ")<br />
			b6 == "O";<br />
		if(a == 7 && b7 == " ")<br />
			b7 == "O";<br />
		if(a == 8 && b8 == " ")<br />
			b8 == "O";<br />
		if(a == 9 && b9 == " ")<br />
			b9 == "O";<br />
	}<br />
	else<br />
		goto g;<br />
}

The line that contains the error gives this "error C2146: syntax error : missing ';' before identifier 'a'" Can anyone help me try to explain why this is happening becuase when I do what the compiler says it compiles fine. please help.Confused | :confused: Confused | :confused:

Actual Linux Penguins were harmed in the creation of this message.
GeneralRe: wierd error! Pin
Ryan Binns18-Mar-04 13:08
Ryan Binns18-Mar-04 13:08 
GeneralRe: wierd error! Pin
Snyp18-Mar-04 13:24
Snyp18-Mar-04 13:24 
GeneralIMAP4 working class or something Pin
sir_graf18-Mar-04 11:51
sir_graf18-Mar-04 11:51 
GeneralDbase DriverID Pin
BlackDice18-Mar-04 11:41
BlackDice18-Mar-04 11:41 
QuestionHow to set size to an activeX during Design time Pin
Member 95774618-Mar-04 10:52
Member 95774618-Mar-04 10:52 
GeneralFaxing from an application Pin
Shell_2118-Mar-04 10:11
Shell_2118-Mar-04 10:11 
GeneralRe: Faxing from an application Pin
Branislav18-Mar-04 16:32
Branislav18-Mar-04 16:32 
GeneralRe: Faxing from an application Pin
Shell_2124-Mar-04 10:34
Shell_2124-Mar-04 10:34 
GeneralRe: Faxing from an application Pin
Branislav24-Mar-04 22:01
Branislav24-Mar-04 22:01 
GeneralProgramatically creating DSN Pin
krugger18-Mar-04 9:59
krugger18-Mar-04 9:59 
GeneralRe: Programatically creating DSN Pin
Todd Smith18-Mar-04 13:06
Todd Smith18-Mar-04 13:06 
Generalvc++ Pin
Anonymous18-Mar-04 9:52
Anonymous18-Mar-04 9:52 
GeneralRe: vc++ Pin
Prakash Nadar18-Mar-04 14:57
Prakash Nadar18-Mar-04 14:57 
GeneralRe: vc++ Pin
Balkrishna Talele18-Mar-04 16:59
Balkrishna Talele18-Mar-04 16:59 
GeneralDialog Help.. Pin
modeonetwo18-Mar-04 9:40
modeonetwo18-Mar-04 9:40 
GeneralRe: Dialog Help.. Pin
Alexander M.,18-Mar-04 9:42
Alexander M.,18-Mar-04 9:42 
GeneralRe: Dialog Help.. Pin
modeonetwo18-Mar-04 9:54
modeonetwo18-Mar-04 9:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.