Fixed PRINT 5 - - 5by (no login)In C when two - operators are next to each other they become a different operator. They must be separated by a space in the C code to fix this. QB64 was not compiling minus-minus-number correctly. This fix happened from investigation of qbguy's bug report: a=3 b=2 PRINT A+++++B PRINT A-----B Still produces a mysterious C++ error -- should print 8 and -2 Of course multiple +'s and -'s are not normal code, but 5--5 certainly is. By applying some simple checks I was able to get QB64 to process even bizarre combinations of + and - operators in a row just like QBASIC. I hope no one will type: PRINT -4+-+-+--+-+--+---+---+-+-++-++--+-+++-++--++-+--+-+---++-+-3 PRINT -+56+5+--+5+-5+-+5+-+-+5+-5-55-+-5-+-5+-+-5+5+-+55+-+-+-5+-+5+--+5 ...but just in case they do, QB64 will be ready! Thanks qbguy, Galleon from IP address 58.106.166.186 |