📄 pr06022.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 + -