You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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;
|
|
}
|