C++学习第一天(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

猜你喜欢

转载自www.cnblogs.com/wy9264/p/10581316.html