?? 1-3.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;
}
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -