第1课 (欢迎进入c++)

#include <iostream>                //预处理器编译指令#include
int main(void)                     //函数头 
{                                  //函数体{
    using namespace std;           //编译指令
    cout << "你好";                //语句
    cout<<endl;                    //换行
    cout << "欢迎学习C++" << endl; //语句
    return 0;                      //函数返回0
}                                  //函数体}

 

posted @ 2021-04-17 20:58  梦之心  阅读(40)  评论(0编辑  收藏  举报