Consider the iostream library, in particular, cout and endl. Assume that the #include has been executed. At this point, there are three ways to specify cout and endl so the compiler will be able to find these names when you output say “Hello World”. Give all three methods.
What will be an ideal response?
a) Place a using directive in you code, either globally or in the block where you will use it. Example:
```
using namespace std;
cout << “Hello World” << endl;
```
b) Place a using definition, in you code, either globally or in the block where you will use it. Example:
```
using std::cout; using std:endl;
cout << “Hello World” << endl;
```
c) Qualify each name you will use with the namespace name and the scope resolution operator. Example:
```
std::cout << “Hello World” << std::endl;
```
You might also like to view...
The small black square in the lower right corner of a selected cell is called the:
A) fill handle. B) range finder. C) Insert Worksheet button. D) value axis.
Using copy and paste functions to create a new Web page from a page that you already created can save time because the new page will have the same style sheet and page elements as the original.
Answer the following statement true (T) or false (F)