home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
classout.zip
/
CLASSOUT.CPP
Wrap
Text File
|
2002-11-10
|
274b
|
24 lines
#include <iostream.h>
extern "C"{
typedef struct{
int i;
}S;
}
class C : public S{
public:
C(){ i=1; };
};
void foo( S *s ){
cout << "i = " << s->i << endl;
}
int main( )
{
C c;
foo( &c );
return 0;
}