设为首页 加入收藏

TOP

C++学习第一天(helloword)
2019-03-23 00:08:06 】 浏览:67
Tags:学习 第一 helloword

C++编译过程                                                                                                                          

 1 #include <iostream>
 2 //iostream 提供了一个叫命名空间的东西,标准的命名空间是std 包含了有关输入输出语句的函数
 3 // input&^output
 4 //stream 流
 5 //命名空间
 6 using namespace std;
 7 int main(void)
 8 {
 9  //count就是黑屏幕
10     cout << "hello world" << endl;
11 //endl 是控制符,表示重启一行
12 //与其说程序显示一条消息,不如说它将一个字符串插入到了输出流中; 
13 //    getchar();
14     return 0;
15 }
16 #if 0
17 #include <stdio.h>
18 int main(void)
19 {
20     printf("hello world");
21     return 0;
22 
23 } 
24 #endif 
HelloWorld

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇(模板)2-SAT 下一篇在Ubuntu下编译安装nginx

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目