class Float {
int addr;
public:
/*Float(float *fmem_top) {
fmemory[addr] = *fmem_top;
}*/
Float(float value) {
fmemory[addr = fmem_top++] = value;
}
int operator&() {
return addr;
}
};
class ptrFloat {
int addr;
public:
/*ptrFloat(int value) {
addr = value;
}*/
ptrFloat(int value) {
pmemory[addr = pmem_top++] = value;
}
};
Comments
Leave a comment