Initial commit

This commit is contained in:
Michael Reber
2019-11-15 12:59:38 +01:00
parent 40a414d210
commit b880c3ccde
6814 changed files with 379441 additions and 0 deletions
@@ -0,0 +1,24 @@
Fig01_04.cpp - Recursive routine to print numbers, with a test program
#include <iostream.h>
void printDigit( int n )
{
cout << n;
}
/* START: Fig01_04.txt */
void printOut( int n ) // Print nonnegative n
{
if( n >= 10 )
printOut( n / 10 );
printDigit( n % 10 );
}
/* END */
int main( )
{
printOut( 1369 );
cout << endl;
return 0;
}