Basically i have an error that i can normally easily fix but i can't this time. Its really annoying i've spent so much time trying to figure this easy error out and can't locate it because there are no open brackets they are all closed. maybe someone else can see, sorry for having to post the whole code btw. ?I've narrowed it down to this part
this is the errorCode:// ********** operator >=() tests **********// cout << "**** operator >=() tets ****" << endl; //test positive cout << "Expecting OK:" << endl; a.Set("123456789"); b.Set("123456789"); if (a >= b) { cout << "OK" << endl; } else { cout << "123456789 >= 123456789: ERROR" << endl; } cout << "Expecting OK:" << endl; a.Set("123456789"); b.Set("12345678"); if (a >= b) { cout << "OK" << endl; } else { cout << "123456789 >= 12345678: ERROR" << endl; //test negative cout << "Expecting OK:" << endl; a.Set("-987654321"); b.Set("-987654321"); if (a >= b) { cout << "OK" << endl; } else { cout << "-987654321 >= -987654321: ERROR" << endl; } cout << "Expecting OK:" << endl; a.Set("-98765432"); b.Set("-987654321"); if (a >= b) { cout << "OK" << endl; } else { cout << "-98765432 >= -987654321: ERROR" << endl; } //********* End operator >=() tests ********* return 0; }
Code:main.cpp: In function ‘int main()’: main.cpp:382: error: expected `}' at end of input make: *** [bigint] Error 1