Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user