home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_10 / 599.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  797KB  |  2550x3300
Labels: binder | book | crt screen | poster | reckoner
OCR: Exercises and Progra ramming Problems 599 to another string Both strings and the name of the file should appear as com- mand line arguments If the program is named change the invocation do change Smith Johnson name of name string should open the file File and change every occurrence of the "Smi th" to the string "Johnson" Write aC program that reads file and displays it on the terminal screen with le Have the name of "the file and the number of lines in header for each page page entered as command line parameters. The header should consist of 1e blank line line with the file name pue the page number, and another blank line. For example if the program named prfile the invocation prfile filename should produce a header like this: File filename Page Number There should be three lines of on ea ...