在什么语言Arduino的IDE写的,C或C ++? [英] In what language is the Arduino IDE written, C or C++?

查看:1017
本文介绍了在什么语言Arduino的IDE写的,C或C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Python的到来,整个C / C ++的是一种陌生的开始......然后我在Arduino的使用'标准'C一个地方看到,而在另一个,它使用标准C ++,所以上,等等。

Coming from Python, the whole C/C++ thing is kind of alien to begin with... and then I see in one place that Arduino uses 'standard' C, and in another that it uses 'standard' C++, so on and so forth.

来源是关于冲突究竟是什么Arduino的使用。

Sources are conflicted about what exactly Arduino uses.

它是C 2 这里建议。

或者是C ++? 这里建议。

这是什么呢?什么是C,C ++和code。使用Arduino的IDE书面之间的关系?我应该集中在什么学习,如果我要到Arduino编程?

Which is it? What is the relationship between the C, C++ and code written using the Arduino IDE? What should I concentrate on learning if I want to program the Arduino?

推荐答案

Arduino的不运行C或C ++。它运行的机器code无论从C,C ++或具有对Arduino的指令集编译器的任何其他语言编写的。

Arduino doesn't run either C or C++. It runs machine code compiled from either C, C++ or any other language that has a compiler for the Arduino instruction set.

C是C ++的一个子集,如果Arduino的可以在运行C ++则可以在运行C

C being a subset of C++, if Arduino can "run" C++ then it can "run" C.

如果您不知道的C和C ++,你应该用C开始,就习惯了整个指针的事情。虽然你会失去所有的对象继承能力。

If you don't already know C nor C++, you should probably start with C, just to get used to the whole "pointer" thing. You'll lose all the object inheritance capabilities though.

这篇关于在什么语言Arduino的IDE写的,C或C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆