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
/
424.jpg
< prev
next >
Joint Photographic Experts Group Image
|
2013-12-21
|
555KB
|
2550x3300
Labels:
binder
|
book
|
crt screen
|
desk
|
poster
|
reckoner
|
sky
OCR:
424 Chapter Structuring the Data void pri int emp( struct employee emp ); POSTCOND PRECONDITION: NOILI Di dup parame isplays is ter the struct contents emp Loyee of the struct empl Loyee int main( void struct emp loyee emp; reademp.( &emp pr intemp( emp return void reademp( struct awo Loyee 'emptr reademp char instri ng [BUF LGTH] printf "Enter the informat ion for an empl Loyee \n" ; pr intf( "Name fgets( >name NAME LGTH, stdin empt ->name[ strlen (emptr->name) fgets( printf( empt SoC a ->ssn, Securi SSN ty LGTH, Number: stdin emptr ]uss<- strlen (emptr ->ssn pr int "Hourl ly or ed or fgets( inst ing, BUF LGTH, stdin empt instring ->paytype hourl instring HI Note 4 else if emptr >paytype instring salar ied *instring SI else ad exit( intf( "Illegal paytype, program terminated In" Note 5 >p ...