Congratulations Ian. This 2nd Coding Contest was amazing and productive!!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: SlydogPlus, the line: test2=256, is that allowed? ie. a direct integer to assign an ascii value? And/or is it out of range? (255 max?)In C you can assign 256 to a char, but only gets the lowest 8 bits.
Quote from: SlydogIs a char type a numerical type, like a byte, or a string type?The type char in C is a number, chars are 8 bits numbers.
If its a string type, do we need to use a '$'?
Quote from: Kitty Hello on 2010-Aug-17Is this possible? Oh my God!!
you can use V8 beta, and "try" to use:
LOCAL number AS short // char, float, double
GLOBAL largemap![]
DIM largemap![500][500] // this uses half space of an integer array
largemap[1][1] = -500
largemap[2][2] = 123
largemap[3][3] = 32767
Quote from: MrTAToad on 2010-Jun-10Operator NOT inverts a boolean expression, not inverts the sign. Any number not zero is evaluated to true and the zero is false. Then, I think your test is ok.
Currently, NOT wont invert the sign of a number :DEBUG NOT(-1)+"\n"
DEBUG NOT(1)+"\n"
Both return 0