c - error C2059: syntax error :"->" and ";" -


when trying compile program, got these errors:

1>e:\workspace_for_c\02-3\02-3\02-3\02-3.cpp(83): error c2059: syntax       error:“new” 1>e:\workspace_for_c\02-3\02-3\02-3\02-3.cpp(84): error c2059: syntax error:“->” 1>e:\workspace_for_c\02-3\02-3\02-3\02-3.cpp(89): error c2059: syntax error:“;” 1>e:\workspace_for_c\02-3\02-3\02-3\02-3.cpp(90): error c2059: syntax error:“->” 1>e:\workspace_for_c\02-3\02-3\02-3\02-3.cpp(105): error c2059: syntax error:“;” 

my code:

enter image description here

enter image description here

note:i using windows 7 vs 2010

it looks have c code you're trying compile if c++, in language new reserved word. change suffix .cpp .c , use of new should not cause problem (although it's bad idea use keywords common programming languages variable names).


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -