iostream - STL C++

cout

Declaration

extern ostream cout;

Description

The cout object is an instantiation of the output stream ostream that controls the stream buffer and is used for standard output messages.

Header Include

#include <iostream>

Example

#include <iostream>

int main() {
	using namespace std;

	// We can send any content to cout
	cout << "XoaX.net" << endl;

	// Keep the window open
	cin.get();
	return 0;
}

Output

cout Output
 

© 2007–2024 XoaX.net LLC. All rights reserved.