I'm really having some trouble.. Am sure the explanation is simple but after two and half hours of searching the internet and fiddling with my program all to no avail.
This is the code:
do Output.printChar(InStr.charAt(0)); // prints "-" InStr[0]="-". InStr="-123456789"
if (InStr.charAt(0) = "-") // however this if statement is false.
Surely it should be true ?I have fiddled endlessly, please help, I'm sure it's something blindingly obvious that I can't see.
(At this rate C is turning out to be much less frustrating than jack !!
)
Thanks in advance