Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. 0 or 1 ??

0 or 1 ??

Scheduled Pinned Locked Moved IT & Infrastructure
questionc++javadatabasedata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fred D
    wrote on last edited by
    #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

    R 1 Reply Last reply
    0
    • F Fred D

      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

      R Offline
      R Offline
      raouls
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups