0 or 1 ??
-
First of all, I'd like to wish you all the best for this New Year.:) I’m currently developing a C++ application that will interface with VB and LabView clients. My question is regarding the array indexing, is there any standard (C++, VB etc) telling the way you’re supposed to index your array? The eternal question: “is it 0-based or 1-based??” As I’ve heard that in VB indexing is most likely 1-based and in Java/C++ it is 0-based. Thanks a lot for your comments and opinions on this point. Fred
-
First of all, I'd like to wish you all the best for this New Year.:) I’m currently developing a C++ application that will interface with VB and LabView clients. My question is regarding the array indexing, is there any standard (C++, VB etc) telling the way you’re supposed to index your array? The eternal question: “is it 0-based or 1-based??” As I’ve heard that in VB indexing is most likely 1-based and in Java/C++ it is 0-based. Thanks a lot for your comments and opinions on this point. Fred
as far as i know the generally accepted "standard" is 0-based, though when i learned pascal in school all our arrays were 1-based... :-) as far as i know VB defaults to 0-based arrays though... -- Raoul Snyman Saturn Laboratories e-mail: raoul.snyman@saturnlaboratories.co.za web: http://www.saturnlaboratories.co.za/ linux user: #333298