15 lines
338 B
C++
15 lines
338 B
C++
TestIntCell.cpp - IntCell test program (Fig 1.9)
|
|
|
|
#include <iostream.h>
|
|
#include "IntCell.h"
|
|
|
|
int main( )
|
|
{
|
|
IntCell m; // Or, IntCell m( 0 ); but not IntCell m( );
|
|
|
|
m.write( 5 );
|
|
cout << "Cell contents: " << m.read( ) << endl;
|
|
|
|
return 0;
|
|
}
|