home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 772.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-13  |  757KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner | screen | sky
OCR: 772 Chapter Discovering C++ iv 1<Enter>a<Enter>2 space><Enter><space> Enter> vii. 123<CTRL A>456 To type <Enter> simply press the Enter key. To type <space press the space bar. To type <CTRL- -A> hold the Ctrl key down and press the Write an in. ine function that tests whether an integer is positive and less than 100 Have your function return the results of the test as type bool Write C++ program that prompts the user to enter an integer, accepts input of an integer, calls the function you wrote in part to test the input integer and displays the result. Your program should use the stream input and output facilities Modify the program you wrote in part a so that it t takes two parameters the integer to test and a reference to a bool variable that, upon termination of function execution, wil ...