/*Orion Lawlor's Simple STL Examples, olawlor@acm.org
Shows how to use std::cout.
*/
#include <iostream>
#include <string>

int main()
{
	int i=2;
	double d=3.456789012345;
	const char *c="C-string";
	std::string s("C++-string");
	
	//C++-style output
	std::cout<<i<<" "<<d<<" "<<c<<" "<<s<<std::endl;
	
	//Strange intermediary
	std::ostream &o=std::cout<<"start ";
	o<<"finish"<<std::endl;
	
	return 0;
}
/*<@>
<@> ******** Program output: ********
<@> 2 3.45679 C-string C++-string
<@> start finish
<@> */
