pointer to some code

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2004
Posts: 1
Reputation: bruseyboy is an unknown quantity at this point 
Solved Threads: 0
bruseyboy bruseyboy is offline Offline
Newbie Poster

pointer to some code

 
0
  #1
Jul 29th, 2004
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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1749 | Replies: 0
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC