View Poll Results: How understandable do you find the cprogramming.com tutorials?

Voters
14. You may not vote on this poll
  • Gibberish

    0 0%
  • Sort of

    3 21.43%
  • alright

    8 57.14%
  • really easy

    3 21.43%

Thread: plz help - CP.com Tutorials

  1. #1
    I'll take you down! polonyman's Avatar
    Join Date
    Sep 2004
    Posts
    50

    Question plz help - CP.com Tutorials

    im sorry, i must be pretty annoying by now but a fellow programmer must help someone in need.

    i just dont understand lesson 6 at all. can sum1 just rewrite the whole thing, making sure the same info is there and post it so its understandable plz?????

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Cool Ah, pointers!

    Like the tutorial says, "Pointers can be confusing." Both the concept and the syntax are confusing. But, once you "get it", you'll realize that the concept is quite simple.

    If you are going to learn C++, you are going to need more than one source. Most beginning C++ books will devote an entire chapter to pointers.

    Every variable lives at an address. It exists at a physical location in memory*. Most of the time, you don't care about the address of a variable.

    The data held by a variable (at that variable's address) is a number. (Everything in the computer's memory is stored as a binary number.) That number might simply be an integer number, it might represent an ASCII character, or it might be the address of another variable, i.e. a pointer.

    Let me say that again: A pointer is a variable that holds the address of another variable.

    So, why would anyone want to use this indirect way of getting to a variable? The most common use of pointers (and references) is to make a function that affects more than one variable. Most textbooks will have an example function that swaps two values. You can't do this without using pointers or references. You can also use pointers to update a structure, or array, including c-style strings

    Here's another tutorial.


    *Sometimes the address reported by C++ is NOT the true physical address. For example, Windows uses virtual addressing. Dont worry, your program will still work.
    Last edited by DougDbug; 09-09-2004 at 11:58 AM.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    What I did was I read and tried to understand what the tutorials were saying and when I finished, I would go to another tutorial (cpp-home.com, cplusplus.com, etc.) and it would clearify anything that didn't make sense. There are still some things that I don't understand, but there is no use for them (for me at least). I hope that helps a little.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    I definately won't say they're the easiest in the world. I've seen some small problems in the example code, but if you've got some background knowledge in computers, and you're reasonably inteligent, I do think they're sufficient. I like them, but I can understand if a newbie has some trouble. I voted "alright".

  5. #5
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    Ya they are OK i voted alright to they could use some updating to be up to date with the standard but besides that the basics are there and they still teach you enough for you to get started
    Woop?

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    If you're a visual learner, perhaps Binky can shed some light on things.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can any1 plz make this assignment
    By jean in forum C Programming
    Replies: 17
    Last Post: 05-13-2009, 09:19 PM
  2. Replies: 3
    Last Post: 04-06-2007, 05:10 PM
  3. Why don't the tutorials on this site work on my computer?
    By jsrig88 in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2006, 10:39 PM
  4. Wiki for Tutorials
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 08-16-2005, 03:03 PM
  5. CProgramming.com should update their tutorials.
    By PorkyChop in forum C++ Programming
    Replies: 17
    Last Post: 09-19-2004, 10:51 PM