#include "simulation.h"
int main(void)
{
{
cout << endl << "CHAR_SL_CELL test" << endl;
CHAR_SL_CELL R1("charR1"),R2("charR2");
R2.load_all('J',NULL);
R1.load_all('I',&R2);
cout << endl << R1 << R2 << endl << endl;
cout << "Deleting R1 by delete &R1" << endl;
delete &R1;
cout << endl << endl;
cout << "Deleting R2 by delete &R2" << endl;
delete &R2;
cout << endl << endl;
cout << "Leaving scope" << endl << endl;
}
{
cout << endl << "CHAR_DL_CELL test" << endl;
CHAR_DL_CELL V1("intV1"),V2("intV2");
V2.load_all(&V1,10,NULL);
V1.load_all(NULL,20,&V2);
cout << V1 << V2 << endl << endl;
cout << "Deleting V2 by delete &V2" << endl;
delete &V2;
cout << endl << endl;
cout << "Deleting V1 by delete &V1" << endl;
delete &V1;
cout << endl << endl;
cout << "Leaving scope" << endl << endl;
}
return 0;
}