Say I have an array A declared in a visual c++ program. I want to be able to access this array in a separate x86 assembly program (a .asm file which is in the same workspace). What are the conventions for doing this? Am I supposed to indicate that the c++ file is a "header file"?
also...
Say I have a class foo, and that one of its fields is a pointer to an instance of itself:
class foo
{
int x;
foo y;
}
When the constructor for foo is called, I want it to initialize the value of the y field to the instance of foo that just got constructed.
foo()
{
y=THIS INSTANCE OF foo...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.