I got error for the "<" in the code
else if(gObj[aIndex].Money < Price)
warning C4018: '<' : signed/unsigned mismatch
Printable View
I got error for the "<" in the code
else if(gObj[aIndex].Money < Price)
warning C4018: '<' : signed/unsigned mismatch
that basically means that you are comparing a signed value to an unsigned value. You need to match the "signedness", ie make the unsigned variable signed or vice versa.