Advertisement

Passing pointers?

Started by June 13, 2001 07:06 PM
1 comment, last by Hoside 23 years, 7 months ago
I have two pointers each pointing to a class. Now i want to pass these pointers to a function but it never works. What i wanna know is how do i send a pointer that holds a class through a function? - Goblineye Entertainment
Do you mean like this?
  class Demo {  public:    int a;};void DemoFunc(Demo *MyDemo) {  printf("%d",Demo->a);}Demo MyDemo;DemoFunc(&MyDemo);  

Or is there something I''m not understanding about your question? That''s how you pass the poitner though...

[Resist Windows XP''s Invasive Production Activation Technology!]
Advertisement
Thanks null. Thats what i needed. I am sorry about the way i asked the question.

- Goblineye Entertainment

This topic is closed to new replies.

Advertisement