CSE 100 Study Guide - Final Guide: For Loop, Object-Oriented Programming, Return Type

148 views74 pages

Document Summary

Class review and specific class functions (accessor, mutator, and to-string) Inputting a value into a variable with cin and >> It is used to read input from the keyboard in conjunction with the stream extraction operator >: order in which you store data values to variables matters, user input goes from keyboard to the input buffer o. The flow of cin statements is left to right; i. e. the keyboard sends characters to cin which is the same data type as variable-name o. Input is dependent on the enter key: can be used to input multiple values, when the user inputs multiple values, each value is separated by spaces on the user end. Therefore the order you place cin variable storage counts o. Ex if i type 3 15, for width and length values the code must be ordered cin >> width >> length. Fixed and setprecision are identifiers form the c++ standard library.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents