The first error is a typo you wrote pememory.
The second error appears because you didn’t code any transformation between Float and ptrFloat.
You should add a copy constructor to Float:
Float(const Float& a) : Float(*a.fmem_top) {}
And then a conversion constructor to ptrFloat:
ptrFloat(Float a) : Float(a) {
pmem_top=pmemory;
*pmem_top=abc;
pmem_top++;
}
PS: your code has a lot of problems. I don’t really get what you are trying to do, but, for instance, you can’t have float typed variables as array subscripts.
2
solved Please solve these errors. I’m using dev++ compiler [closed]