c ++ helloworld
2018-02-09 13:35
197 查看
#include <iostream> using namespace std; int main() { cout << "Hello world" << endl; return 0; }
#include <iostream>和c中不同,不再需要.h
using namespace std因为下面用到了
cout和
endl,二者都是标准命名空间(namspace std)的变量,所以要声明
endl代表换行,在win系统下,会被编译为\r\n,在linux系统下会被编译为\n
1)当使用
相关文章推荐
- hello world C#
- Hello,World 起源 [转载]
- 51. 学会说“Hello, world”
- Ajax HelloWorld
- hello,world!
- 3.GAE Hello World
- go hello world
- CUDA入门——环境搭建,hello world cuda(1)
- Hello to the cruel world
- 各类语言编写的HelloWorld>程序
- Rust hello world 语法解说
- 1. C# - Creating a Hello World Program
- 百度地图开发环境搭建BDHelloWorld
- 2012 浙大机试 Hello World for U
- Obj-C的hello,world 2
- 深入理解Java HelloWorld
- RabbitMQ消息队列(二):”Hello, World“
- 题目1464:Hello World for U
- Flume Hello World!
- Ubuntu下用汇编编写Hello,world