CSE 250 Lecture Notes - Lecture 3: Standard Streams

65 views2 pages

Document Summary

Finishing up basic types string is a commonly used type, although it is a class (comes from and ) if you i(cid:374)(cid:272)lude , the(cid:374) is already i(cid:374)(cid:272)luded i(cid:374) that (cid:894)(cid:449)e do(cid:374)"t (cid:374)eed to include separately) #include enum suit { hearts, diamonds }; enum rank { ace, two, three }; i(cid:374)t (cid:373)ai(cid:374)(cid:894)(cid:895) { } Declaring a variable adds the name into a scope. Expression: a sequence of operators and their operands. When in doubt (about order of operations), use parenthesis just in case. Note: go over ex08 to understand it fully. A new type in c++11: auto -> assigns the correct type to a variable int x = 2; typeid(x) will give you the type that x is auto y = 2. 7/x + 9. 2f; ^^ this would be a double plus a float, resulting in a double. Control structures if, else if, else switch for.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents