Hello,
I've written the following code and keep getting the errors:
Error 1 error C2244: 'Supermarket<temp>::operator =' : unable to match function definition to an existing declaration
Error 2 error C2244: 'Supermarket<temp>::setName' : unable to match function definition to an existing declaration
Error 3 error C2244: 'Supermarket<temp>::setArea' : unable to match function definition to an existing declaration
I seem to have misunderstood you.
I already had the .cpp and .h contents in one file. I just moved the main to the .h file (which was weird ) and got the LNK error.
> I'm using dynamic allocation because it's what's stated in my HW
Please re-read it.
`Products' and `Price' may be dynamic arrays, but you limited their size.
`Name' and `Array' `Area' has no justification.
1) you don't give us the full code, and we'll keep guessing what could be the problem
2) you post all the code and label which files they are (of course, each in separate code sections), then we can at least determine if its a source code problem or not (in which case you'll want to check the project/linker settings)
Just wanna say, thank you all :) It worked :) (The problem existed in the fact that I stored a a value other than an address in a pointer in Sname=a) thank you again :)