Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393
>>im viewing the link you pointed out but it has terms that's unknown to me at this stage in my c++ journey
They're the same terms you were trying to use in your OP.
Try this:
Start with this function tutorial, then read the next 5 or 6 pages.
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393
That is one significant use of pointers. Yes. If you have the option, it is easier to do it via references. They're not as powerful, or agile, but their syntax is simpler.
There are other uses as well. Such as dynamic memory. Did you read that page in the tutorial I linked you?
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393
Hexadecimal (base-16) notation is actually pretty simple to understand. The representations of the numbers just take some getting used to (like anything else). It just uses 0-9 and a-f (representing 10-15) instead of simply just 0-9 (decimal).
For example:
How do you represent these numbers:
1. Sixteen:
decimal (<strong>base 10</strong>): 16
hexadecimal (<strong>base 16</strong>): 0x10
2. Two-Hundred Fifty-Five:
decimal (<strong>base 10</strong>): 255
hexadecimal (<strong>base 16</strong>): 0xFF
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393
You seem to understand the digits, now you need to figure out the position values.
In decimal notation, 0xFF means [TEX]( (15*16^1) + (15*16^0) )[/TEX] == (240 + 15) == 255
Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393