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 - C++ Learning > Re: Newer versi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 4211 of 4250
Post > Topic >>

Re: Newer version of Quincy gives me the following error...

by Ben Bacarisse <ben.usenet@[EMAIL PROTECTED] > Jul 20, 2008 at 03:58 PM

Donny <x.smiling_tiger@[EMAIL PROTECTED]
> writes:

> Hi.  I updated the Quincy 2002 compiler to the 2005 compiler and find
> that it gives me an error in one of my programs.  The program is just
> a simple drilling cycle for a machine tool.
> I'm going to give the whole source code(warning! it's inelegant but
> was written with very little experience in C++)and then the error...
> This is my error:
> ISO forbids variable size array X and Y

I am surprised you X and Y not x and y.

> It worked fine in Quincy 2002.
> This is the code objected to:
>
> for(i = 1; i < numberOfHoles; i++)
> 	{
> 		cout << "X" << x[i] << "Y" << y[i] << endl;
> 	}

Very unlikely.

> Is it because I can no longer dimension an array size with a
> variable?

Yes.  The code objected to should be this bit:

> 	cin >> numberOfHoles;
> 	float x[numberOfHoles], y[numberOfHoles];

I think Quincy is gcc based.  If so, you can certainly get g++ to
accept the code, but how you get at the compiler flags from the IDE, I
don't know.

-- 
Ben.
 




 2 Posts in Topic:
Re: Newer version of Quincy gives me the following error...
Donny <x.smiling_tiger  2008-07-20 07:39:40 
Re: Newer version of Quincy gives me the following error...
Ben Bacarisse <ben.use  2008-07-20 15:58:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu Aug 28 5:37:07 CDT 2008.