home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_07 / 425.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  765KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: Unions 425 print temp vee void printemp struct emp Lovee emp pr intf( "Name S \n" emp name ); pr intf( "Soci ial sec No emp ssn emp .paytype hour Note printf "Hourly rate $87 2f\n" emp payrate per hour else printf( "Weekly Salary $7d\n emp payrate per week) The program consists of the functions ma in() reademp() and pri intemp () variable of type struct empl Loyee is declared inmain() ;main() calls reademp to read data from the keyboard and store in the structure variable and then calls pri intemp() tc display the data The program might be first step in developing larger payroll program Note that the ANSI prototype has been used when you declaring do the functions reademp and printemp You may need to modify this not have an ANSI compiler. Note 1: The type enum paytype is declared. It will ...