📄 ex2_11.cpp
字号:
// Ex2_11.cpp
// Using a using directive
#include <iostream>
namespace myStuff
{
int value = 0;
}
using namespace myStuff; // Make all the names in myStuff available
int main()
{
std::cout << "enter an integer: ";
std::cin >> value;
std::cout << "\nYou entered " << value
<< std:: endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -