This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
If you did copy-paste from another site and get bunch of errors in your IDE (like I did with your code, because syntax looks fine) there probably are some special characters invisible in your IDE that you "picked" from the source (white spaces, usually).
edit: Yep, \160, lots of these special characters in your code.
The quieter you are, the more you are able to hear.
WeiJie Lim
Ranch Hand
Joined: Sep 05, 2012
Posts: 70
posted
0
Kemal Sokolovic wrote:If you did copy-paste from another site and get bunch of errors in your IDE (like I did with your code, because syntax looks fine) there probably are some special characters invisible in your IDE that you "picked" from the source (white spaces, usually).
edit: Yep, \160, lots of these special characters in your code.
Dang, I thought I replaced all the wrong quotation marks.. Guess there are still some special characters which I can't spot.
I wanted to test out the code from a book.. oh well.
You can either retype the code yourself, or wherever you have blanks (white space, new line, etc.) remove it and reformat your code again. The first is certainly better, since it's not a lot of code, you can do it quickly.
WeiJie Lim
Ranch Hand
Joined: Sep 05, 2012
Posts: 70
posted
0
Okay found those offending weird characters in UTF-8 .. Thought it was ANSI .