编辑helloword

来源:互联网 发布:淘宝有销量没评价 编辑:程序博客网 时间:2024/05/17 00:12

</pre><pre name="code" class="cpp">#include<iostream>using namespace std;int main(){    cout<<"hello world"<<endl;    return 0;}

  今天第一次尝试了编译helloworld,今天我了解了#include<iostream>是利用iostream中的语言来编程,还有只能有一个main函数,

int表示整数,{}是函数的内容,<<是输出运算符,endl是换行符,“;”是每句话猴都要的,除了第一行。

  自己又试着编写了一遍发现自己的错误还很多,自己又改正了一番。

  

1 0