text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

c02p119c.cpp

Go to the documentation of this file.
00001 
00015 // Exercise 15
00016 
00017 void recurse(int x, int y)
00018 {
00019    if (y > 0)
00020    {  ++x;
00021       --y;
00022       cout << x << " " << y << endl;
00023       recurse(x, y);
00024       cout << x << " " << y << endl;
00025    }  // end if
00026 }  // end recurse

Generated on Sun Aug 27 11:05:08 2006 for AWLogo by  doxygen 1.4.6