|
Slide 2.3: Opening and closing files (cont.) Slide 2.5: Reading and displaying file contents Home |
|
using namespace std;std namespace.
This means that all standard library symbols either need to qualified with the std::prefix (e.g. std::cout), or simply moved into the global namespace with the using namespace directive.
ostream << const char * str;<< inherited from the class ostream performs a formatted output operation (insertion). cout is the standard output stream.
void close ( );int system ( const char * command );/bin/catsystem command works: