zoukankan      html  css  js  c++  java
  • c++学习1 first测试输出

    #include <iostream>
    using namespace std;
    
    int main()
    {
        cout << "hello world << endl"; //输出文字
    
        system("pause");//方便观察结果
        return 0;
    }

    //  符号位注释

    /*  */  多行注释 成对出现,如果/* */ 之间还需要多行注释的时候容易出错

    #if  #endif  利用c++代码的特性 用预处理方式注释

    #include <iostream>
    using namespace std;
    
    int main()
    {
        cout << "hello world << endl"; //输出文字
    
    #if 0
        cout << "hello world << endl"; //输出文字
        cout << "hello world << endl"; //输出文字
        cout << "hello world << endl"; //输出文字
        cout << "hello world << endl"; //输出文字
    #endif
    
        system("pause");//方便观察结果
        return 0;
    }    
  • 相关阅读:
    uni_app系列
    并发编程
    VUE+DRF系列
    其实我是个诗人
    中医
    linux+docker
    Mysql数据库
    爱好
    AJAX
    Django
  • 原文地址:https://www.cnblogs.com/mohu/p/8952910.html
Copyright © 2011-2022 走看看