| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Declaring a pointer to a |
Hi Neil. 13-Jan-03 09:54:00, Neil Heller wrote to Jasen Betts JB>> I think you need to post an example with more flesh. NH> Therein lies a problem. The code is hundreds of lines long and NH> it's encased in a Windows program. Yes, I'm aware that I could NH> CSPLIT it and post it in several parts but sheesh, I'm convinced NH> that there's got to be a "simple" solution. If you post windows code here I'll ignore it. NH> The situation is that I wish to create the object in a member NH> function. ???? HN> Then I need to manipulate the data in an unrelated class NH> WITHOUT creating a new object in that unrelated class. Objects of class A (for Accountant) need to have a method that can manipulate the contents of existing objects of class B (for Books) I think you'd need to declare A::maniputate_B() as a Friend of B NH> I thought that I could succeed by passing pointers to the original NH> class, but... that'd get you part way there. -=> Bye <=- ---* Origin: I'm pink, therefore I'm SPAM. (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/1 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.