home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2802
Discussions: 188,385, Posts: 2,243,510, Members: 232,615
Old April 24th, 2003, 12:55 AM   Digg it!   #1 (permalink)
Member
 
Damien019's Avatar
 
Join Date: Jun 2002
Location: in NJ close to NYC
Posts: 235
Send a message via AIM to Damien019
C++ pointers

why?

really though just why?, what purpose do they serve?

Damien019 is offline   Reply With Quote
Old April 24th, 2003, 01:12 AM     #2 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,549
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
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.

jkrohn is offline   Reply With Quote
Old April 24th, 2003, 01:17 AM     #3 (permalink)
I am a banana!
 
originel's Avatar
 
Join Date: Jun 2002
Location: Texas Tech
Posts: 3,921
Send a message via AIM to originel
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!

originel is offline   Reply With Quote
Old April 24th, 2003, 01:25 AM     #4 (permalink)
Member
 
Damien019's Avatar
 
Join Date: Jun 2002
Location: in NJ close to NYC
Posts: 235
Send a message via AIM to 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
Damien019 is offline   Reply With Quote
Old 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.
alansantino is offline   Reply With Quote
Old May 2nd, 2003, 12:00 AM     #6 (permalink)
Banned
 
qball's Avatar
 
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
qball is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2897)
CPU wont boot (6)
3-days in and no threads about Gaza (160)
The United States Debt (20)
I think I just killed my computer w.. (24)
hp compaq nc6000 problems (139)
Upgrading RAM (5)
Folderchat Weekday thread (442)
Antec 300 bulk purchase? (11)
Recent Discussions
Problem With LightScribe DVD Dr.. (0)
CPU wont boot (6)
GLaDOS is up. (3)
HP notebook reinstall Vista NO .. (5)
Building a gaming computer advi.. (4)
hp compaq nc6000 problems (139)
Folderchat Weekday thread (442)
Creative T-3000 Subwoofer (3)
ACPI controller halt on boot (2)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 10:47 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28