?? 1-4.cpp
字號:
//{。。。}中定義的變量是局部變量只在該{。。。}中有效
//并屏蔽了此{...}外出現的同樣變量,并沒有修改
#include<iostream>
#include<string>
int main()
{
{
const std::string s="a string ";
std::cout<<s<<std::endl;
{
const std::string s="another string";
std::cout<<s<<std::endl;
}
std::cout<<s<<std::endl;
}
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -