Pointer in C++

S

sara

Hi All,

I think one the most difficult concepts in C++ in pointer handling. Do
you know any good and complete refrence which learn me this topic well?

Thanks a lot.
 
A

Alf P. Steinbach

* sara:
I think one the most difficult concepts in C++ in pointer handling. Do
you know any good and complete refrence which learn me this topic well?

This is not a reference (it's more like a chapter from a book with
looong chapters), and it's not complete (instead of the easy stuff that
novices shouldn't use and good professionals seldom use, such as raw
arrays, this goes more to understanding some "advanced" concepts, but
starting from scratch).

Yet I think it's what a novice needs to know.

Naturally I think that because I wrote it. <g>

<url: http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01.pdf>

with example code in

<url:
http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01_examples.zip>
 
J

Jens Theisen

sara said:
I think one the most difficult concepts in C++ in pointer handling. Do
you know any good and complete refrence which learn me this topic well?

You probably know that, but you shouldn't be using C-style pointers in
C++ unless you know what you're doing. In particular, if your doing
pointer arithemetic (as ptr + i), you probably want to be doing
something else. So I suggest you first make sure that you are pretty
familiar with the STL containers and iterators before you begin to
deal with C-style pointers.

Regards,

Jens
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top