⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pr06022.cpp

📁 c++编程宝典源码及Quincy99编译器 是《标准C++编程宝典》电子工业出版社的光盘
💻 CPP
字号:
////////////////////////////////////////
// File Name: pr06022.cpp
////////////////////////////////////////
#include <iostream>

////////////////////////////////////////
// The main() function.
////////////////////////////////////////
int main()
{
    // Get memory for an array of integers.
    int* birthday = new int[3];

    // Assign values to the array elements.
    birthday[0] = 6;
    birthday[1] = 24;
    birthday[2] = 1940;

    // Display the values in the array.
    std::cout << "I was born on "
              << birthday[0] << '/'
              << birthday[1] << '/'
              << birthday[2];

    // Return the allocated memory to the heap.
    delete [] birthday;

    return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -