Original Post
Ok, ok, before I begin, I must tell you something... I use Borland
C++ Compilers. Why? Well, the obselete versions are free, as i''m
to broke to afford £49.99 for Visual C++. Anyway...
When I was using Borland C++ 5.5, I could do the following...
I get the error "multiple declarations for ''ctr''" which annoys
me most. I know I could just do int ctr, but when I''m doing
loads of sub-''for''s, it gets irritationg declaring ctr2...ctr15,
especially when I''m coding on-the-fly, trying out new ideas, as
sometimes I would use ctr instead of, say, ctr2. This causes
incorrects results in my functions, and takes me a while to
work this out.
So... is this a Borland C++ 4.52 thing, or something else?
Thanks to all who reply
for(int ctr=0; ctr<100; ctr++)
{
...Render some stuff...
}
[/source]
and everything was fine. Now, I re-installed windows due to some
problems, and resorted to using Borland C++ 4.52. But! If I do
this:
[source]
for(int ctr=0; ctr<100; ctr++)
{
...Render some stuff...
}
for(int ctr=0; ctr<100; ctr++)
{
...Do something nice...
|