structuring data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vbwire
    New Member
    • Jan 2008
    • 19

    #1

    structuring data

    where do i drop my post about data structure? is it here,in c++?

    i really dont understand the lecture about data structure.. i know that it is use to make our program be more organize..

    1.what is pointer?how it is suppose to help us with programming?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Originally posted by vbwire
    where do i drop my post about data structure? is it here,in c++?
    Yes assuming that the base language you are using is C or C++

    Originally posted by vbwire
    1.what is pointer?how it is suppose to help us with programming?
    A pointer is the address of a location in memory and it is fairly essential to even the most basic programs in C. In C++ while the pointer is still quite important in several uses a reference is more commonly used as it has a number of advantages over a pointer.

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      The pointer allows you to decide at runtime what data to use. You just put the address of the data in the pointer. If you didn't have this ability, you would need 10 functions for 10 diffrerent pieces of data. With the pointer, you have 1 function and you pass the address of the specific data.

      Comment

      Working...