⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex1_04.cpp

📁 一本语言类编程书籍
💻 CPP
字号:
// Exercise 1.4 If the using directive is missing from the code, the program will not compile. 
// The cout statement will produce an error. The problem could be rectified by altering the program code to:

#include <iostream>
int main() {
  std::cout << std::endl
            << "Hello World"
            << std::endl;

  return 0;
)

/*
This specifies the namespace for the standard library that the missing line allowed you to omit.
Alternatively you could just add the following using directives:

using std::cout;
using std::endl;

Either solution is better than the original because the original will introduce all the names from the iostream header into the source file. 
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -