I am having trouble with my program. For some reason, I cannot set my class up, resulting in an error C2236.
1 2 3 4 5 6
class ComplexTest
{
public:
ComplexTest();
void Run();
};
The weirdest this is that whenever I move my cursor to ComplexTest it says "class ComplexTest".
Can someone help me? Because virtually all of my errors stems down from this.
I also have a class named Complex, does that have anything to do with it?
Thank you, but this is a header file. I'm sorry I did not clarify that.
Also this what my Output window is saying
"1>c:\users\owner\documents\visual studio 2010\projects\lab10\complextest.hpp(19): error C2236: unexpected 'class' 'ComplexTest'. Did you forget a ';'?"
Somewhere you are forgetting a ";", but it has nothing to do with the code you posted.
Note that the class was unexpected, it was expecting something different before the class. Just chance that ComplexTest was where something wrong actually happened.
The problem is obviously inside main, right? You're extracting the right numbers, and the correct amount of numbers. Something must be wrong with your if statements.