请用C++语言给出一段示例代码
时间: 2023-10-05 21:08:28 浏览: 97
Sure, here's an example code in C:
```
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
```
This code simply prints the message "Hello, world!" to the console. Is there anything else I can help you with?
阅读全文