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 / 745.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-13  |  465KB  |  2550x3300
Labels: book | crt screen | daybook | reckoner
OCR: 12.6 More about I/O 745 to com Obj ect ive To exp lore the forma tting facilities in C+ defined rest of 0 and /Include Files h> to set #incl Lude <iostream that can int main Note 1 cout endl; cout "De fault WI idth is cout wi dth) endl; cout idth cout endl, cout endl endl; Note cout "Default fill character cout fill endl, cout 11 cout "Now character cout endi cout w dth ating cout endl endl; Note 3 ough cout .setf( ios: :hex ios: :uppe rcase ; rcase \n cout 'Integer output set to hex and uppe cout idth cout endl endl, Note int preci isn cout precis ion); with cout "De faul 3456789 preci ision endl; prec sn >> endl; cout pro- cout prec S. ion 2 endl; C+ cout MONu preci sion is cout prec ision() cout 2 3456789 endl endl; Note 5 cout setf ios :fixed fixed cout loat ing point output has been s ...