LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2012, 03:19 PM   #16
keithostertag
Member
 
Registered: Jul 2011
Location: Harrisburg, PA
Posts: 127

Original Poster
Rep: Reputation: Disabled

OK, thanks once again. I can't say that I _understand_ it yet, but this discussion certainly has helped me. I'll need to play with it some more.

Keith
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-07-2012, 03:30 PM   #17
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
The easiest way to digest this kind of concept is graphically. Unfortunately, that's not very easy to do on a message forum.

That said, I saw this page: The C and C++ pointers programming tutorial

I can't say whether it's good or bad, but I did see that they tried to use some graphics to help represent the concepts. It might be worth looking over.
 
Old 02-08-2012, 12:02 PM   #18
keithostertag
Member
 
Registered: Jul 2011
Location: Harrisburg, PA
Posts: 127

Original Poster
Rep: Reputation: Disabled
Hey Dark-

Just want to let you know that I found that link and site (http://www.tenouk.com/) to be very useful. There are occasional quirks of language (I suspect the author's native language is not English) but nothing problematic. The site seems to be mostly oriented toward Windows, but also gives specific examples for gcc/gcc+ and makes an effort to let the reader know when examples are environment/platform specific. Yes the graphics are useful, but it's strength are the numerous code examples arranged in a manner geared for beginners. I partcularly like how the author presents several ways to code a single statement/idea.

I highly recommend it for newbies like myself :-)

Thanks for suggesting it, and all of your comments.

Keith Ostertag
 
Old 02-12-2012, 03:21 AM   #19
ejspeiro
Member
 
Registered: Feb 2011
Distribution: Ubuntu 14.04 LTS (Trusty Tahr)
Posts: 203

Rep: Reputation: 26
Hi keithostertag: I might be jumping in late to this thread, but since you are claiming to be a beginner on using pointers, I thought on suggesting you an useful analogy: Try to think of them a pirates watching through their telescopes! Think about it! That analogy helped me a while back when I started studying pointers.

A special pirate is required for the special type of object they will be appointed to keep an eye on! If that type is data_t, then the special pirate for it will be data_t *pp;

Pirates have their unique label, which will allow you to address them! If pp is how you called your pirate, then its label will be *pp!

More important: if you want to have access to what the pirate is looking at, then data_t xx = &pp; will do the work!

Finally, excuse me if the following tip, seems to imply that I might be "overteaching" you, but I love to keep it mind: Every time you decide to use a single letter for a variable name i.e. p for your pirates, then double type it: pp. That way, if you later need to replace every instance of that variable in your code, you can safely look for instances of pp, stablishing that results match the entire word, and then you will not replace the p in printf, for example, which would happen if you use p for your identifier!

Have a nice coding man! \m/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with compiler warnings rheosiva Linux - Kernel 4 06-05-2009 06:24 AM
LXer: Linux: Compiler Warnings LXer Syndicated Linux News 0 05-24-2007 09:01 PM
Beginning programming mikeymorgan Programming 38 06-28-2005 07:59 AM
just beginning c programming mcd Programming 12 02-24-2005 05:06 PM
java compiler warnings exodist Programming 2 05-09-2004 01:42 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration