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 / 674.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  610KB  |  2550x3300
Labels: book | crt screen | person | reckoner | sky
OCR: 674 Chapter Discovering C++ Example 12-2: area .cpp area Synopsis Prompts for and accepts input of the height aid width rectangl and displays the area of the rectangle Objective To study the input stream cin, the extraction operator, and 1i scover more about output C Include Files #incl .ude <iostream h> int main int wi. idth, hei ight, Notel cout 'Area Rectangle Note \n\n"; cout "Enter the height: C he cht Note 3 cout "Enter the width: cin width, Note3 Note4 cout return This program consi ists of the single function main If you glance at the code you will sec many statements using to insert items into cout. You will also notice two statements using the operator symbol >> Note 1: This line of code isa declaration oftwo variables, wi idth and he ight of type int The funda lamental types in ...