Streams: Using Iostream Library
Applies To: C++Builder 1 or higher
Category: C++ Language
- The standard iostream library is contained in the std namespace. This means that to use an iostream function such as cout, you must specify the namespace qualifier: std::cout <<< "This is a test";
-
- But instead of inserting this code for each individual function, you can add the entire iostream library with the using keyword:
-
- using namespace std;
-
- Finally, you have to include the <iostream> header file. It is important to note that the standard iostream library uses headers without the .H
- extension:
-
- #include <iostream>
C++Builder Developer's Network
Copyright © Yoto Yotov