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
//...
Type: Posts; User: Matticus
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
//...
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.
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...