I'm not sure where the idea that you "don't need pointers in c++ comes from," 
as I've seen it here multiple times. Just because your learning c++ doesn't 
mean you won't use pointers, though, and being able to read the code is just as 
important as being able to write it. Everyone that writes code isn't going to 
typedef their strings for the people that don't understand how to read 
pointers. I don't want to come across as rude at all with it, but I really 
highly suggest you get used to the pointer idea. If you want to use a lot of 
different libraries, you'll end up using pointers sooner or later.

                Thanks,
Tyler Littlefield
        http://tds-solutions.net
        Twitter: sorressean

On Mar 16, 2010, at 10:16 AM, Jimmy Johnson wrote:

> I just want to say thanks again to all the people on this forum who have 
> provided so much help to me. But I have a suggestion to those of you who 
> provide sample code and books.
> 
> Don't use intergers as the central type in the demo.
> 
> For example, when describing arrays most examples go something like this:
> 
> int my_array[10];
> 
> or:
> 
> int* my_array;
> my_array = new int[10];
> 
> As a non-C programmer I find this confusing; I can't separate the pointers 
> from the objects. Especially when the writer then goes into the benifits of 
> pointer arithmatic (of which it seems supporters of C are very proud).
> 
> Oh, and don't use strings either [char* is confusing too]. Use an abstract 
> type such as PERSON or MY_TYPE. So the example becomes:
> 
> person my_array[10];
> 
> Now it is easy for us non-c programmers to tell the difference between an 
> access to an object and a pointer manipulation.
> 
> Just my two cents worth.
> 
> Jimmy J. Johnson
> 
> 



------------------------------------

To unsubscribe, send a blank message to 
<mailto:[email protected]>.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to