The first problem is that the prototype on line 9 doesn't match the implementation on line 38.
The second problem is that you don't do anything with the entered numbers (
The third problem is that your leave
nValues uninitialize. You use
choosenNum to enter the numbers, but not for the calculation later on.
on line 43: if
nValues is 0 your program crashes (why do you cast
nValues to double? It is already double)
It would be helpful if you could show us the whole of those linker errors - especially the part that would tell us which symbols were unresolved!
I'm guessing one of them is
array, which I don't see defined anywhere in your code.
System::String? What header file is it defined in? Any particular reason why you're not using the STL string class?
What is the purpose of the
^ symbols in the definition of
main? That's not a C++ construct I'm familiar with - is it some kind of platform-specific extension?
Last edited on