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 / 565.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  654KB  |  2550x3300
Labels: book | crt screen | daybook | poster | reckoner
OCR: 10.3 Character Input and Output 565 Include Files #inc lude <stdio.h> Note 1 input; the #incl ude <stdlib h> utput utility Both *argv[] The int main int argc char arameter of FILE fpin fpout Note 2 int iocha e to open ning would infor- be arge printf I= Usage 3 cp oldfile newfile\n" ) exit Note 3 c() is the (( fpin fopen argv [1] 11 yft ) NULL the end of Note 4 value printf "Can open input file.\n" version of exit tc() will int that ( fpout fopen argv[2], NULL that will Note 5 printf( "Can open output file.\n" ) exit( turned by while (( iochar getc fpin )) 1= EOF Note 6 input aud putc( iochar, fpout ut file are fclose( fpin original fcl lose fpout guments. return 0 otypes Tf changed This program consists of the single function named main The executable code consists of three if statements ...