+ All Categories
Home > Documents > Lecture 5: Expressions and Interactivity Professor: Dr. Miguel Alonso Jr. Fall 2008 CGS2423/COP1220.

Lecture 5: Expressions and Interactivity Professor: Dr. Miguel Alonso Jr. Fall 2008 CGS2423/COP1220.

Date post: 18-Jan-2018
Category:
Upload: julian-phillips
View: 218 times
Download: 0 times
Share this document with a friend
Description:
// This program asks the user to enter the length and width of // a rectangle. It calculates the rectangle's area and displays // the value on the screen. #include using namespace std; int main() { int length, width, area; cout width; area = length * width; cout

If you can't read please download the document

Transcript

Lecture 5: Expressions and Interactivity Professor: Dr. Miguel Alonso Jr. Fall 2008 CGS2423/COP1220 The cin Object The cout objects counterpart for input is cin Standard console input object Prompt the user for input >> stream extraction operator (remember > letter; cout


Recommended