programming-examples/c++/Others/TestIntCell.cpp - IntCell test program (Fig 1.9).cpp
2019-11-15 12:59:38 +01:00

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;
}