home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
sampl254.zip
/
gcc2
/
samples
/
sample4
/
printable.m
< prev
next >
Wrap
Text File
|
1993-10-31
|
428b
|
37 lines
#include <stdio.h>
#include "printable.h"
@implementation PrintableInt
- setInt: (int)aValue
{
value = aValue;
return self;
}
- print
{
printf("%d", value);
}
@end
@implementation PrintableString
- setStr: (char *)aValue
{
value = aValue;
return self;
}
- print
{
printf("%s", value);
}
@end
@implementation EOL
- init
{
self = [super init];
[super setStr: "\n"];
}
@end