When you say C: structure, are you referring to the structure of a typical C: drive on a PC?
QuoteWhen you say C: structure, are you referring to the structure of a typical C: drive on a PC?It is about your ability to break down a complex task into well defined pieces so that when they are re-assembled, they work flawlessly together. That's where the money is, besides creativity.
It is about your ability to break down a complex task into well defined pieces so that when they are re-assembled, they work flawlessly together. That's where the money is, besides creativity.
There's no such thing as the "Arduino language." Arduino is programmed in C++.
The microcontroller on the board is programmed using the Arduino programming language (based on Wiring) and the Arduino development environment (based on Processing).
there are enough differences that mean the syntax and semantics depart from standard C++
But it should be made clear that when you program in the Arduino IDE, there are enough differences that mean the syntax and semantics depart from standard C++
The programming language used is C++, I don't think there's any difference in syntax or semantics apart from "PROGMEM".
Code: [Select]#include >theirlib.h>Getting that to compile would be a feat and a half in any system.
But I base my opinion (that arduino's are programmed in the C++ language) simply based on the fact that the IDE calls the gcc compiler to compile the sketch. The fact that there are things being done by the arduino preprocessor, while interesting and good to know and understand, doesn't change my opinion that the arduino does not use a programming language other then C++.
It's not like the preprocessor is acting like a front end language converter that might say convert Fortran or Basic statements to C/C++ statements.
In my opinion, the first and last book you'll need for learning C is "The C Programming Language" by Kernighan and Ritchie. Like the C language itself, the text is small, simple and clean. A classic.
what were they thinking, anyway?
As I said above, an attempt at a "simplified dialect" would be the most generous description I can think of.
A trivial syntactic difference between "Arduino Language" and C++ is the replacement of "bool" with "boolean". (And what were they thinking, anyway?)
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16