Go Down

Topic: Read this before posting a programming question ... (Read 74 times) previous topic - next topic

AWOL

#25
Jul 04, 2012, 06:51 pm Last Edit: Jul 04, 2012, 06:56 pm by AWOL Reason: 1
Because the Arduino pre-preprocessing does it for you, most of the time.
Sometimes, like functions with references as parameters, it doesn't work too well.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

dkl65


Sometimes, like functions with references as parameters, it doesn't work too well.

I once did this:
Code: [Select]

void timer(unsigned long interval, void (*g)()){
  //...
}

and got compiler errors unless I write the function before it is used.


Coding Badly

Quote
Post your code!


Please change that to "Post your complete sketch!"  Too many people post snippets of code that have nothing to do with the actual problem.

Nick Gammon

Done. I added a clarification that a sketch is a program/code.

Go Up