Arduino 使用 C 还是 C++? [英] Does Arduino use C or C++?

查看:107
本文介绍了Arduino 使用 C 还是 C++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一处看到 Arduino 使用标准"C,而在另一处看到它使用标准"C++,依此类推.

I see in one place that Arduino uses 'standard' C, and in another that it uses 'standard' C++, so on and so forth.

是什么?

推荐答案

Arduino 草图是用 C++ 编写的.

Arduino sketches are written in C++.

以下是您将遇到的典型构造:

Here is a typical construct you'll encounter:

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
...
lcd.begin(16, 2);
lcd.print("Hello, World!");

那是 C++,不是 C.

That's C++, not C.

这篇关于Arduino 使用 C 还是 C++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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