April 24th, 2003, 12:55 AM
|
#1 (permalink)
| | Member
Join Date: Jun 2002 Location: in NJ close to NYC
Posts: 235
|
why?
really though just why?, what purpose do they serve? |
| |
April 24th, 2003, 01:12 AM
|
#2 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,549
|
Once you start to study data structures you will see just how important they are
Without them things like link lists, trees, graphs, etc all become much more difficult
Recursive link lists anyone?
Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
|
| |
April 24th, 2003, 01:17 AM
|
#3 (permalink)
| | I am a banana!
Join Date: Jun 2002 Location: Texas Tech
Posts: 3,921
|
actually they server many many purposes when you start getting into dynamic memory.
for example if you ever need a linked list or any sort of tree you will be using pointers out the behind (these types also have advantages over other data types, so they do need to be known).
also if you get into windows programming, especially directx or the API you'll be dealing a lot with pointers to the windows and such.
also if you don't want to declare any parameters of a certain variable, pointers allow you to put off doing that till later.
that's all i can think of at the moment...but there are a lot of other uses.
EDIT: oh god jkron...images of my data structures class are rushing back right now...make them stop! |
| |
April 24th, 2003, 01:25 AM
|
#4 (permalink)
| | Member
Join Date: Jun 2002 Location: in NJ close to NYC
Posts: 235
|
lol alright, because i am learning C++ now and was thinkin about doing pointers but they are quite confusing and not really relevant at the moment |
| |
May 1st, 2003, 04:43 AM
|
#5 (permalink)
| | Junior Member
Join Date: May 2003 Location: India
Posts: 3
| Quote: Originally posted by Damien019 lol alright, because i am learning C++ now and was thinkin about doing pointers but they are quite confusing and not really relevant at the moment | You try learning pointers after you get a good hold the language. Pointers are a very very important part of C/C++ although it may seem insignificant to those learning it for the first time.
I advice you to learn some assembly language and microprocessor architecture (just an outline) to get a better understanding on pointers. |
| |
May 2nd, 2003, 12:00 AM
|
#6 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
| Quote:
why?
really though just why?, what purpose do they serve?
| Quote: |
but they are quite confusing and not really relevant at the moment
| very relevant. Pointers, that is...
simple:
memory management
hard:
er, ah.. memory management |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |