This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

for loop stuff


thnks for all the help people.

hres 1 more q

if i use
for (int i=0;i<9;i++) cout<<endl<<i;
i=25;

i get a iso somethin error

it is rectified if i give

int i=25;

is there someway the int i declared in the for loop is directly available .

problem is i was previously using turbo C++ compiler which allowed this and i got a lot of code with similar statements as above.

So can anyone suggest somethin
anant




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]