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;
}    
原文地址:https://www.cnblogs.com/mohu/p/8952910.html