当前位置:首页 > C++编程 > C++基础

C++ 实例 – 输出 “Hello, World!”

c++ 实例 - 输出 "hello, world!"

c++ 实例

使用 c++ 输出字符串 "hello, world!",只是一个简单的入门实例,需要使用 main() 函数及标准输出 cout:

实例

#include <iostream>using namespace std; int main() { cout << "hello, world!"; return 0;}

以上程序执行输出结果为:

hello, world!


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!