home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_09
/
1109105a
< prev
next >
Wrap
Text File
|
1993-07-18
|
346b
|
25 lines
#include <iostream.h>
class File
{
public:
File() { ok = FALSE; }
bool good() { return ok; }
void reset(bool b = TRUE) { ok = bool(b); }
private:
enum bool {FALSE, TRUE};
bool ok;
};
int main()
{
File f;
cout << f.good() << '\n';
cout << sizeof(f.good()) << '\n';
cout << sizeof(f) << '\n';
return 0;
}