944,045 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 4333
  • C RSS
Dec 20th, 2004
0

How to declare this function?

Expand Post »
I am trying to create a pure virtual function returning an array of pointers, without success! :cry: I would appreciate help greatly.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sinB is offline Offline
11 posts
since Dec 2004
Dec 20th, 2004
0

Re: How to declare this function?

Like this?

virtual void **ReturnArrayOfPointers() = 0;

Replace void with the array of pointer's type (like int, float, MyRec, whatever)
Reputation Points: 36
Solved Threads: 11
Posting Pro in Training
Chainsaw is offline Offline
436 posts
since Jun 2004
Dec 27th, 2004
0

Re: How to declare this function?

IF u r using void *<functionname><arguements>...then u have to typecast ur returning value as per ur requirements...
Reputation Points: 7
Solved Threads: 1
Junior Poster in Training
harshchandra is offline Offline
68 posts
since Nov 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: please help
Next Thread in C Forum Timeline: algorithm uses in scheduling between RAM and CPU





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


Follow us on Twitter


© 2011 DaniWeb® LLC