autostorage.cpp
来自「C++ sample code, for the book: C++ blac」· C++ 代码 · 共 31 行
CPP
31 行
#include <iostream>
#include <string>
using namespace std;
void function(void);
int main()
{
string color("red");
cout << "In main the color is " << color << endl;
function();
return 0;
}
void function(void)
{
string color("green");
cout << "In the function the color is " << color << endl;
{
string color("blue");
cout << "In the block the color is " << color << endl;
}
cout << "After the block the color is " << color << endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?