📄 list0203.cpp
字号:
// Listing 2.3 - using the using keyword
#include <iostream>
int main()
{
using std::cout;
using std::endl;
cout << "Hello there.\n";
cout << "Here is 5: " << 5 << "\n";
cout << "The manipulator endl ";
cout << "writes a new line to the screen.";
cout << endl;
cout << "Here is a very big number:\t" << 70000;
cout << endl;
cout << "Here is the sum of 8 and 5:\t";
cout << 8+5 << endl;
cout << "Here's a fraction:\t\t";
cout << (float) 5/8 << endl;
cout << "And a very very big number:\t";
cout << (double) 7000 * 7000 << endl;
cout << "Don't forget to replace Jesse Liberty ";
cout << "with your name...\n";
cout << "Jesse Liberty is a C++ programmer!\n";
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -