| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | function pointers |
On 04 Oct 97, Travis Hein wrote to All -- TH> how do you implement function pointers in C++? I know there is a way TH> to make a generic funciton pointer that points to functions. If you have a function declared as 'void foo()', you can create a pointer to that function by having a variable declared as 'void (* bar)()' and then simply assigning a value to it (e.g. 'bar = foo;' would work nicely). --- PPoint 2.00 ---------------* Origin: Junyer's Workshop (1:342/1022.2) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.