Search:

Type: Posts; User: Matticus

Search: Search took 0.05 seconds.

  1. Replies
    14
    Views
    2,091

    That is referred to as the "arrow operator." ...

    That is referred to as the "arrow operator." It's a short cut for referencing a structure member via a pointer to the structure. Consider the following three examples.



    // Example 1
    //...
  2. Replies
    14
    Views
    2,091

    Perhaps. Another possibility might be that the...

    Perhaps. Another possibility might be that the OP would gloss over the link and not notice such a subtle clue, since on the surface, a swap example doesn't appear to answer their question.
  3. Replies
    14
    Views
    2,091

    You need to pass a pointer to your structure to...

    You need to pass a pointer to your structure to the function, to modify it.

    The way it stands, you're passing the structure itself, which creates a local copy within that function. Any changes...
Results 1 to 3 of 3