cout<< and <<endl ?
807600Aug 31 2007 — edited Sep 1 2007Does anyone have any experience using
cout<< and <<endl ?
I've never seen these in any of the texts I'm using.
For example can someone tell me what they indicate in the follwing recursive method?
void cheers(int n) {
if ( n==1 )
cout << "Hurray" << endl; (orSystem.out.println("Hurray");
else {
System.out.println("Hip"); (or cout << "Hip" << endl);
cheers(n-1)
}
Thanks,
Mark