Show Posts
Pages: 1 ... 16 17 [18]
256  Using Arduino / Programming Questions / Re: many errors when compiling the C program on: March 05, 2012, 01:01:43 am
To Sacman:
I write it by myself, by using the logic from my supervisor final project. I thought he used C language.
To Nick Gammon:
Oh thank you finally I know this is Basic, heu smiley-grin

To All:
Every arduino program, I have found that they use void(), it means it has no return value.
One reason why I force to use GoSub is because it has return value, and in my complicated program, I need to return..

Do you have any idea what syntax I can use in order to have return value? smiley-grin
257  Using Arduino / Programming Questions / many errors when compiling the C program on: March 04, 2012, 11:53:15 pm
I'm newbie in C programming and i am trying to drive my arduino, but I found there errors:

sketch_mar05d:84: error: expected constructor, destructor, or type conversion before '=' token
sketch_mar05d:85: error: expected constructor, destructor, or type conversion before '=' token
sketch_mar05d:86: error: expected constructor, destructor, or type conversion before '=' token
sketch_mar05d:87: error: expected constructor, destructor, or type conversion before '=' token
sketch_mar05d:88: error: expected constructor, destructor, or type conversion before '=' token
sketch_mar05d:92: error: expected constructor, destructor, or type conversion before '(' token
sketch_mar05d:93: error: expected constructor, destructor, or type conversion before '(' token
sketch_mar05d:94: error: expected constructor, destructor, or type conversion before '(' token
sketch_mar05d:97: error: expected unqualified-id before 'for'
sketch_mar05d:97: error: expected constructor, destructor, or type conversion before '>' token
sketch_mar05d:97: error: expected constructor, destructor, or type conversion before '--' token

here is the code: http://physicsforums.com/showthread.php?t=583892
I'm sorry I cant post he code all here because words limitation.

Thank you before
Pages: 1 ... 16 17 [18]