need help with C++ PLEASE
I'm writing a program that's due at midnight tonight that uses 5 different functions. I have the last 4 written, but can't figure out how to write the first one. Here is a snippet of what the directions say:
Write the function and call it from the main program
1. A recursive function which receives a string of Zeroes and Ones, at least ten of them. Display what was received, removes the last zero or one from the string and then calls itself if the string length is greater then zero, else it terminates recursion and simply returns.
so far I have used an array, and I just can't figure out how to make the function call itself so that the array displays 1 digit shorter from the end each time until it reaches NULL. Please please help
|