delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/30/07:01:44

Message-ID: <19990729051304.21198.rocketmail@web130.yahoomail.com>
Date: Wed, 28 Jul 1999 22:13:04 -0700 (PDT)
From: Mohamed Saad <bazramit AT yahoo DOT com>
Subject: Yet another question about C++
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hi all,
   well... here is another question about C++!

well... suppose we have this class definition...

class point
{
   int x;
   void some_func();
  public:
   void draw_it();
}

Now... some_func() was NOT in the .cpp file!! it is in
an asm file and compiled using NASM, not djgpp!

I dunno what to call the routine some_func() in the
assembly file! if i call it _some_func, ALL classes
will have access to it!
also, how to make it access the member x?

what if some_func is in the public section?

what if it have parameters?

Thanx a lot in advance!

URS,
   Mohamed El Dawy

_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019