Mail Archives: djgpp/2000/01/13/16:57:56
Hi again!
oops, my question was off-topic
(I thought it would be a compiler specific problem, sorry)
thanks for your help, now I see that it's impossible to use,
> for(int x=1, cout << x , x++ ;x<=100; x++)
as it's not possible to define
int cout << x
int x++
which would happen here (which I had overlooked and wouldn't have
found without your help :)
The motivation for this "dumb" question was that I thought that the
definition of x inside the for loop header would make the variable x a
local variable of the loop, which isn't true! So it's of no benefit
when I would define the variable inside the loop header (besides the
syntax error I've made anyway!).
I have a new lesson learned :-) Thanks.
Oh, last not least. I didn't tried the function in Borland C++ 3.1. My
brother did that for me and told me it would work. So it seems he
hadn't really used the program, but a modified version. So I consider
him liable to recourse ;-)
Greetings from Cologne
Peter
- Raw text -