zoukankan      html  css  js  c++  java
  • 第二章 《C++ Primer Plus》

    第二章:

    让窗口暂停:

    cin.get();

    作为接口的函数头:

    函数头句法:

    函数头描述了函数与调用它的函数之间的接口。

    int main();

    int main(void);

    return 0;

    2.1.3 C++预处理器和iostream文件

    #include <iostraem>

    该编译指令导致预处理器将iostream文件的内容添加到程序中。这是一种典型的预处理器操作:在源代码被编译之前,替换或添加文本。

    如果使用iostream,而不是iostream.h,则应使用下面的名称空间编译指令来使iostream中的定义对程序可用:

    using namespace std;

    2.1.6 使用cout进行C++输 //实际上是运算符重载

    cout <<"come up and C++ me come time";

    双引号括起的部分是要打印的消息。在C++中,用双引号括起的一系列字符叫做字符串,因为它是由若干字符组合而成的。"<<"它将一个字符串插入到了输出流中。

    1.控制符endl

    2. 换行符

    被视为一个字符,名为换行符。

    2.4 函数

    函数用于创建C++程序的模块

     

  • 相关阅读:
    Java.io.outputstream.PrintStream:打印流
    Codeforces 732F. Tourist Reform (Tarjan缩点)
    退役了
    POJ 3281 Dining (最大流)
    Light oj 1233
    Light oj 1125
    HDU 5521 Meeting (最短路)
    Light oj 1095
    Light oj 1044
    HDU 3549 Flow Problem (dinic模版 && isap模版)
  • 原文地址:https://www.cnblogs.com/CheeseIce/p/10532916.html
Copyright © 2011-2022 走看看