📄 pr05006.cpp
字号:
////////////////////////////////////////
// File Name: pr05006.cpp
////////////////////////////////////////
#include <iostream>
// Function prototype.
void DisplayTitle();
////////////////////////////////////////
// The main() function.
////////////////////////////////////////
int main()
{
// auto storage-class specifier.
auto int Amount = 500;
DisplayTitle();
std::cout << Amount;
return 0;
}
////////////////////////////////////////
// A function that executes during
// the variable Amount's lifetime.
////////////////////////////////////////
void DisplayTitle()
{
// main()'s Amount exists,
// but is not in scope here.
std::cout << "Amt = ";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -