943,526 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1974
  • C++ RSS
Jul 29th, 2004
0

pointer to some code

Expand Post »
Hi
Is it possible to write a c++ program that sets up a pointer at the start of an array on the heap, and the pointer holds the address of the start of the code.
ie something like---

int *pointstart[5];
pointstart = new (codestart, 0,0,0.0);

1nt main()
{
codestart:; // label at start of code
...................
return()
}


thanks!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bruseyboy is offline Offline
1 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Catching exceptions in C++
Next Thread in C++ Forum Timeline: pow: DOMAIN error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC