From: Uwe R. <u.r...@tu...> - 2010-02-11 14:43:13
|
Hi! > > Your syntax is wrong - > >Actually, his code passes gcc just fine, apparently gcc as an >extension allows variable size arrays, eek. (I wouldn't use such >features, though, and I was in fact surprised to see this.) Only with >-pedantic does gcc complain "ISO C90 forbids variable length array". > >Still, if he is a newbie, I wonder who has taught him to write such >non-standard exotic C code? Hmm, maybe C is too long ago for me but the code doesnt look well and even if it passes gcc I would be very surprised if it would run in a deterministic way. > > The classical book of stoustrup is good for beginners > >What makes you think he wants to learn C++? > >--tml I would do and in fact I do (after grown up with Pascal and being convinced that this is the language to learn how to program) Actually Kernighan Richie would be my choice for C and I dont remember such a strange code in the book. Best wishes Uwe ___________________________ PD Dr. Uwe Rossow TU Braunschweig Inst. f. Angewandte Physik Mendelssohnstr. 2 38106 Braunschweig Fax: 0531-391 8511 Email: u.r...@tu... Tel.: 0531-391 8523 (good luck!) |