pointers

How do I find out the hexadecimal addresses I can use and can't use?
How do I find out which address values are commands, alpha numerics, graphics, sound values since I want to do artistic and music programs?
In other words, how can I obtain a memory map for all of my memory, and the meaning of all the values stored within?
Also, I am just beginning to read about classes, objects, and methods.
I understand what an object is, but could you clarify for me, in simple terms, what the other two are, and how they relate to the former?
Thank you, and have a nice day!!! Michael
In HLL programming, you generally don't access the memory map directly, but rather use an API provided to accomplish things like video and audio output. So you typically don't need to know the raw address of anything (and knowing it doesn't really help).

A method (also called a "function" in C/C++) is a block of code that can be jumped to. Like a subroutine. Organizing code into functions allows common blocks of code to be recycled -- so if the same task needs to be accomplished several places in the program, those places can just call the appropriate function rather than repeating all the code themselves.

A class is a group of variables and functions which represent something. An 'object' is simply an instance of a class. So for example, C++ provides a class "std::string" which represents a string. This string internally consists of variables which hold the actual string data, as well as a series of functions (functions which allow you to calculate the length of the string, erase or change its contents, etc).

1
2
3
4
5
6
std::string foo;
/*
In the above code:
'std::string' is the class
'foo' is an object of type 'std::string'
*/
Topic archived. No new replies allowed.