我如何在 tinkercad 中包含 iostream

How can i include iostream in tinkercad

当我在 tinkercad 中编写 #include iostream 时,出现错误“致命错误:iostream:没有这样的文件或目录” 我怎样才能解决这个问题? full code

Arduino 环境通常不支持普通的 C++ headers,如 iostream(或 vector)。也就是说,他们通常不提供对标准库 headers 的支持,尽管有些可能已经被移植。

您可能想尝试基本的 Arduino 教程和“Blink”草图以及基本的“Serial”示例(例如 how to use Serial.println())。

此外,以后请阅读 the guidelines about a "Minimal, Reproducible Example" 和 post 它作为文本,而不是图像(或者 post 另外图像,我想,因为它可能会有所帮助)。欢迎来到 Whosebug!