Search.setIndex({"docnames": ["AtomicData/AtomicData", "AtomicData/glossary", "AtomicData/toctree", "CollectionData/Arrays", "CollectionData/HashTables", "CollectionData/Strings", "CollectionData/UnorderedSet", "CollectionData/Vectors", "CollectionData/glossary", "CollectionData/toctree", "Control_Structures/conditionals", "Control_Structures/for_loop", "Control_Structures/glossary", "Control_Structures/summary", "Control_Structures/toctree", "Control_Structures/while_loop", "Exception_Handling/ExceptionHandling", "Exception_Handling/glossary", "Exception_Handling/toctree", "Functions/DefiningFunctions", "Functions/glossary", "Functions/summary", "Functions/toctree", "Input_and_Output/InputandOutput", "Input_and_Output/glossary", "Input_and_Output/toctree", "IntroCpp/firstcppprogram", "IntroCpp/glossary", "IntroCpp/introduction", "IntroCpp/toctree", "IntroCpp/welcome", "IntroCpp/whylearncpp", "Turtles/advanced_features", "Turtles/check_yourself", "Turtles/differences", "Turtles/geometry_shapes_stamps", "Turtles/glossary", "Turtles/introduction", "Turtles/pattern_application", "Turtles/summary", "Turtles/toctree", "Turtles/turtle_and_turtlescreen", "index"], "filenames": ["AtomicData/AtomicData.rst", "AtomicData/glossary.rst", "AtomicData/toctree.rst", "CollectionData/Arrays.rst", "CollectionData/HashTables.rst", "CollectionData/Strings.rst", "CollectionData/UnorderedSet.rst", "CollectionData/Vectors.rst", "CollectionData/glossary.rst", "CollectionData/toctree.rst", "Control_Structures/conditionals.rst", "Control_Structures/for_loop.rst", "Control_Structures/glossary.rst", "Control_Structures/summary.rst", "Control_Structures/toctree.rst", "Control_Structures/while_loop.rst", "Exception_Handling/ExceptionHandling.rst", "Exception_Handling/glossary.rst", "Exception_Handling/toctree.rst", "Functions/DefiningFunctions.rst", "Functions/glossary.rst", "Functions/summary.rst", "Functions/toctree.rst", "Input_and_Output/InputandOutput.rst", "Input_and_Output/glossary.rst", "Input_and_Output/toctree.rst", "IntroCpp/firstcppprogram.rst", "IntroCpp/glossary.rst", "IntroCpp/introduction.rst", "IntroCpp/toctree.rst", "IntroCpp/welcome.rst", "IntroCpp/whylearncpp.rst", "Turtles/advanced_features.rst", "Turtles/check_yourself.rst", "Turtles/differences.rst", "Turtles/geometry_shapes_stamps.rst", "Turtles/glossary.rst", "Turtles/introduction.rst", "Turtles/pattern_application.rst", "Turtles/summary.rst", "Turtles/toctree.rst", "Turtles/turtle_and_turtlescreen.rst", "index.rst"], "titles": ["2.1. Using Data in C++", "2.8. Glossary", "2. Atomic C++ Data Types", "5.1. Collections", "5.5. Hash Tables", "5.4. Strings", "5.6. Unordered Sets", "5.3. Vectors", "5.9. Glossary", "5. Collection Data Types", "3.1. Conditionals", "3.3. For Loops", "3.6. Glossary", "3.5. Summary", "3. Control Structures", "3.2. While Loops", "7.1. Exception Handling", "7.4. Glossary", "7. Exception Handling", "4.1. Defining C++ Functions", "4.6. Glossary", "4.5. Summary", "4. Functions", "6.1. File Handling", "6.12. Glossary", "6. Input and Output", "1.4. Let\u2019s look at a C++ program", "1.7. Glossary", "1.2. Introduction", "1. Introduction to C++ for Python Programmers", "1.1. Welcome to C++ for Python Programmers", "1.3. Why Learn Another Programming Language?", "8.6. Advanced Features", "8.10. Check Yourself", "8.7. Python\u2019s turtle vs C-Turtle", "8.5. Geometry, Shapes, and Stamps", "8.11. Glossary", "8.1. Introduction", "8.8. Practical Application - Tessellation", "8.9. Summary", "8. Graphics in C++", "8.4. Turtle & TurtleScreen", "C++ for Python Programmers"], "terms": {"requir": [0, 3, 7, 10, 15, 19, 21, 23, 27, 31, 37, 39, 41], "user": [0, 10, 16, 19, 23, 26], "specifi": [0, 19, 20, 27, 34, 36, 41], "specif": [0, 5, 6, 11, 23, 26, 41], "type": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 16, 19, 21, 23, 24, 27, 28, 29, 31, 42], "each": [0, 3, 4, 6, 7, 8, 10, 15, 19, 26, 31, 35, 41], "variabl": [0, 1, 3, 6, 7, 10, 11, 12, 15, 19, 20, 21, 23, 26, 27, 31, 34], "befor": [0, 6, 7, 16, 23, 26, 27, 41], "i": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 12, 15, 16, 17, 19, 20, 21, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42], "primari": [0, 28, 31], "built": [0, 3, 37], "atom": [0, 1, 3, 42], "ar": [0, 3, 4, 5, 6, 7, 10, 15, 16, 19, 23, 26, 27, 28, 30, 31, 32, 34, 35, 38, 39, 40, 41, 42], "integ": [0, 1, 3, 10, 16, 19, 23, 26, 35], "int": [0, 1, 3, 6, 11, 15, 16, 19, 23, 26, 32, 33], "float": [0, 1, 26], "point": [0, 1, 4, 23, 26, 27, 28, 34, 35, 37], "doubl": [0, 1, 3, 5, 7, 19, 23, 26], "precis": [0, 1, 4, 25, 42], "bool": [0, 1], "char": [0, 1, 3, 5, 6, 16, 23], "There": [0, 5, 16, 26, 31, 34, 38, 41], "also": [0, 3, 4, 7, 10, 13, 16, 19, 23, 26, 30, 31, 32, 34, 35, 37, 39, 41, 42], "special": [0, 42], "which": [0, 3, 4, 5, 6, 7, 8, 16, 17, 19, 23, 26, 27, 31, 32, 35, 37, 38, 41, 42], "hold": [0, 23], "memori": [0, 1, 3, 6, 7, 19, 20, 26, 31, 37], "locat": [0, 1, 3, 4, 6, 7, 19, 23, 26], "call": [0, 3, 4, 7, 10, 16, 19, 23, 24, 26, 31, 34, 36, 37, 41], "ha": [0, 4, 7, 16, 19, 20, 23, 35, 36, 39, 41], "collect": [0, 4, 5, 6, 8, 19, 35, 42], "compound": [0, 10, 15], "discuss": [0, 19, 26, 28], "futur": 0, "chapter": [0, 15, 19, 37, 41], "includ": [0, 4, 6, 7, 11, 15, 16, 19, 23, 26, 27, 28, 31, 32, 33, 39, 42], "standard": [0, 6, 7, 15, 16, 23, 27, 29, 37, 42], "arithmet": 0, "option": [0, 7, 19, 32], "parenthes": [0, 19], "forc": [0, 31], "order": [0, 3, 4, 6, 7, 8, 19, 23, 26, 27, 30, 35, 41], "awai": [0, 10], "normal": [0, 34, 41], "preced": [0, 26], "In": [0, 3, 4, 5, 6, 7, 10, 11, 15, 16, 19, 21, 23, 26, 30, 31, 34, 41], "python": [0, 3, 4, 5, 6, 7, 10, 13, 15, 19, 21, 26, 28, 31, 37, 39, 40, 41], "we": [0, 3, 4, 7, 10, 15, 16, 19, 23, 26, 28, 30, 35, 39, 41, 42], "can": [0, 3, 4, 5, 6, 7, 8, 10, 11, 13, 15, 16, 19, 21, 23, 26, 27, 31, 32, 33, 34, 35, 37, 38, 39, 41, 42], "get": [0, 7, 10, 13, 16, 23, 26, 28, 31, 37], "divis": [0, 16], "declar": [0, 3, 19, 23, 29, 42], "all": [0, 5, 7, 10, 16, 19, 25, 26, 28, 31, 32, 35, 37, 41, 42], "when": [0, 3, 7, 10, 16, 17, 19, 21, 23, 24, 26, 34, 37, 41], "two": [0, 3, 5, 15, 16, 19, 23, 26, 30, 32, 34, 37, 38, 39], "divid": [0, 7, 16], "portion": 0, "quotient": 0, "return": [0, 4, 5, 7, 11, 16, 19, 20, 21, 23, 26, 32, 33, 34, 35], "fraction": 0, "remov": [0, 4, 6, 19], "e": [0, 23, 24, 34], "To": [0, 6, 10, 19, 21, 23, 35], "whole": [0, 19, 31], "one": [0, 3, 5, 6, 7, 8, 16, 19, 20, 23, 27, 30, 31, 32, 33, 35, 37, 38, 39, 41], "number": [0, 3, 5, 6, 7, 8, 11, 15, 16, 19, 23, 24, 26, 32, 36, 41], "convert": 0, "entir": [0, 7, 23], "result": [0, 3, 15, 16, 19, 23, 26], "exponenti": 0, "done": [0, 15, 19, 26], "pow": 0, "cmath": 0, "librari": [0, 4, 5, 6, 7, 16, 19, 23, 27, 28, 29, 34, 35, 37, 39, 42], "remaind": [0, 26], "modulo": 0, "run": [0, 3, 7, 16, 17, 19, 23, 26, 28, 37, 39], "follow": [0, 1, 3, 4, 5, 6, 7, 10, 16, 19, 21, 23, 26, 32, 35, 38, 41], "code": [0, 6, 7, 10, 11, 12, 15, 16, 17, 19, 20, 23, 26, 27, 28, 31, 32, 33, 35, 37, 39, 41], "see": [0, 3, 4, 7, 10, 16, 19, 23, 26, 28, 30, 34, 37, 41], "you": [0, 3, 4, 5, 6, 7, 10, 13, 16, 19, 21, 23, 24, 26, 28, 30, 31, 32, 33, 34, 35, 37, 38, 41, 42], "understand": [0, 3, 5, 26, 37, 39, 42], "modifi": [0, 6, 8, 19, 30, 32], "like": [0, 3, 4, 7, 10, 13, 19, 21, 23, 26, 27, 28, 31, 32, 34, 37, 38, 42], "short": [0, 30], "long": [0, 15, 19], "unsign": 0, "help": [0, 3, 16, 26, 30, 42], "ensur": [0, 19], "space": [0, 3, 7, 19, 23, 26], "effici": 0, "possibl": [0, 3, 4, 7, 12, 16, 23, 26, 42], "q": [0, 3, 5, 6, 7, 10, 11, 15, 19, 23, 26, 32, 33, 37], "3": [0, 3, 6, 11, 16, 19, 23, 32, 33, 35, 37, 38, 41], "what": [0, 3, 5, 7, 10, 16, 19, 23, 26, 30, 31, 33, 35, 36, 38, 40, 41, 42], "2": [0, 3, 11, 19, 23, 32, 33], "4": [0, 3, 6, 10, 11, 19, 26, 33, 42], "how": [0, 10, 16, 19, 23, 26, 28, 31, 32, 33, 35, 36, 37, 39, 41], "do": [0, 3, 4, 6, 13, 19, 23, 26, 30, 31, 32, 34, 37, 41], "rais": [0, 16, 41], "5th": 0, "power": [0, 3, 10, 31], "name": [0, 5, 16, 19, 20, 21, 25, 26, 34, 35, 41, 42], "after": [0, 10, 16, 19, 23, 26, 36, 37, 41], "georg": 0, "who": [0, 6, 42], "wa": [0, 7, 10, 23, 31, 37, 39], "an": [0, 3, 4, 5, 6, 7, 8, 10, 13, 15, 16, 17, 19, 20, 21, 23, 24, 26, 27, 31, 35, 37, 38, 39, 41], "english": 0, "mathematician": 0, "so": [0, 3, 5, 7, 10, 15, 16, 19, 23, 26, 31, 34, 35], "word": [0, 3, 8, 19, 23], "should": [0, 3, 6, 11, 15, 16, 19, 23, 34, 36, 41], "capit": 0, "howev": [0, 3, 5, 6, 7, 13, 16, 19, 23, 26, 31, 34, 35, 38, 39], "keyword": [0, 1, 4, 19, 20, 21, 26], "state": [0, 19, 23], "lower": [0, 35, 41], "case": [0, 3, 10, 12, 15, 16, 19, 23, 26, 41], "true": [0, 4, 10, 12, 15, 23, 26], "fals": [0, 4, 10, 12, 15, 23, 26], "Be": [0, 3], "sure": [0, 19, 26], "note": [0, 3, 4, 10, 15, 19, 23, 26, 28, 35, 42], "differ": [0, 3, 4, 7, 15, 16, 19, 23, 26, 30, 31, 34, 37, 39, 41], "same": [0, 3, 6, 7, 10, 13, 15, 19, 20, 23, 26, 34, 37], "truth": 0, "while": [0, 11, 14, 16, 17, 23, 26, 35, 37, 42], "thei": [0, 6, 7, 13, 16, 19, 23, 26, 27, 32, 35, 41], "repres": [0, 4, 26, 31, 32, 35, 41], "than": [0, 4, 6, 7, 10, 15, 16, 19, 20, 23, 26, 31, 32, 33, 37, 38, 41], "given": [0, 4, 6, 15, 19, 26, 35, 41], "intern": [0, 42], "store": [0, 1, 3, 4, 6, 7, 8, 19, 23, 26], "actual": [0, 3, 5, 7, 19, 23, 26, 32, 41], "0": [0, 3, 7, 11, 15, 16, 19, 23, 24, 26, 32, 33, 35, 41, 42], "respect": [0, 4], "henc": [0, 4, 19], "thi": [0, 3, 4, 7, 10, 11, 16, 19, 23, 24, 26, 28, 30, 31, 32, 34, 35, 37, 38, 41, 42], "output": [0, 4, 15, 16, 19, 23, 24, 27, 28, 29, 41, 42], "well": [0, 7, 19, 21, 23, 26, 37], "object": [0, 8, 23, 24, 26, 31, 32, 35, 36, 37, 41], "comparison": [0, 23, 34, 37], "equal": [0, 3, 10, 15, 19, 23, 34], "greater": [0, 7, 15, 23], "addit": [0, 3, 5, 16, 26, 30], "combin": [0, 23, 32, 35], "togeth": [0, 3, 8, 10, 25, 26, 42], "form": [0, 15, 38], "complex": [0, 34, 37, 39], "question": [0, 5, 19, 23, 26, 32], "show": [0, 4, 16, 19, 23, 32, 35], "exampl": [0, 3, 4, 6, 7, 10, 11, 15, 16, 19, 23, 26, 30, 31, 32, 33, 34, 35, 38, 41], "shown": [0, 5, 6, 32, 39], "session": [0, 4, 16], "explan": [0, 4, 5, 7, 27], "less": [0, 15], "Not": [0, 19], "both": [0, 3, 4, 5, 10, 15, 19, 23, 26, 31, 32, 37], "operand": 0, "One": [0, 7, 26, 31, 37], "other": [0, 3, 4, 5, 7, 16, 19, 23, 26, 31, 32, 34, 37, 41], "negat": 0, "becom": [0, 26, 31], "set": [0, 3, 8, 9, 19, 21, 23, 26, 31, 32, 35, 39, 41, 42], "asid": [0, 26], "A": [0, 3, 4, 6, 7, 8, 10, 11, 12, 15, 16, 19, 23, 24, 26, 27, 32, 36, 41], "initi": [0, 3, 4, 6, 19], "assign": [0, 6, 7, 16, 23, 42], "statement": [0, 10, 11, 12, 13, 15, 16, 17, 19, 23, 26, 27, 37], "consid": [0, 3, 16, 19, 23, 32, 35, 37, 38, 41], "thesum": 0, "creat": [0, 16, 19, 23, 26, 27, 31, 32, 33, 35, 38, 39, 41, 42], "As": [0, 3, 15, 23, 26, 30, 31], "right": [0, 23, 26, 32, 33, 36, 37, 41], "hand": [0, 34], "side": 0, "evalu": [0, 10, 15, 19, 23], "left": [0, 10, 32, 36, 37, 41], "here": [0, 3, 10, 15, 19, 23, 26, 37], "becaus": [0, 3, 4, 5, 7, 10, 16, 19, 23, 26, 28, 31, 32, 34, 37, 42], "dynam": [0, 3, 6, 7, 8, 27, 31], "chang": [0, 3, 5, 7, 8, 16, 19, 23, 26, 27, 30, 31, 32, 35, 38, 39], "program": [0, 3, 6, 7, 10, 12, 13, 16, 17, 19, 23, 24, 27, 28, 29, 30, 37, 39, 41, 42], "doe": [0, 7, 10, 13, 16, 19, 23, 26, 30, 32, 33, 34, 37, 41], "cannot": [0, 1, 3, 6, 16, 23, 26, 27], "characterist": 0, "": [0, 3, 7, 19, 20, 23, 24, 27, 29, 32, 37, 39, 40, 41, 42], "static": [0, 3, 6, 26, 27], "ever": [0, 26], "onli": [0, 3, 8, 10, 15, 19, 23, 26, 31, 32, 41], "pitfal": 0, "often": [0, 3, 4, 10, 23, 26, 31, 35, 38], "simpli": [0, 7, 10, 16, 19, 26, 34], "try": [0, 3, 7, 16, 19, 23, 26, 31, 37], "request": [0, 7], "without": [0, 23, 26, 27, 31, 35, 38], "complain": 0, "happen": [0, 3, 16, 19, 23, 32], "abov": [0, 3, 7, 10, 11, 15, 19, 23, 26, 31, 32, 33, 34, 41], "final": [0, 26, 34], "10": [0, 3, 6, 10, 11, 15, 16, 19, 23, 35, 41], "why": [0, 3, 19, 23, 26, 29, 35, 42], "did": [0, 23, 39], "thebool": 0, "being": [0, 4, 19, 23, 26, 31, 34, 37, 41], "string": [0, 3, 6, 8, 9, 19, 24, 25, 26, 31, 34, 42], "singl": [0, 1, 3, 5, 8, 10, 19, 23, 26, 27, 35], "quot": [0, 5, 26], "13": [0, 16, 26], "If": [0, 4, 10, 15, 16, 19, 23, 31, 34, 41, 42], "want": [0, 3, 10, 19, 23, 26, 31], "symbol": [0, 5, 10, 19, 26], "mai": [0, 3, 19, 23, 26, 31, 41], "indirectli": 0, "know": [0, 19, 23, 24, 30, 31], "comput": [0, 3, 6, 19, 20, 26, 27, 31, 35, 37, 42], "label": 0, "descript": [0, 41], "identifi": [0, 3, 6, 8], "let": [0, 3, 19, 23, 24, 29, 42], "look": [0, 3, 4, 6, 10, 19, 28, 29, 37, 41, 42], "some": [0, 3, 5, 7, 8, 15, 16, 23, 26, 31, 32, 39, 41, 42], "everi": [0, 7, 19, 23, 26, 32, 35, 37, 39], "thing": [0, 4, 26, 31, 37, 39], "refer": [0, 3, 21, 22, 23, 30, 31, 34, 42], "itself": [0, 5, 19, 37], "directli": [0, 3, 26, 27, 31, 32, 37], "need": [0, 3, 7, 8, 10, 15, 19, 21, 23, 26, 27, 31, 35, 42], "either": [0, 3, 19, 26], "make": [0, 3, 4, 19, 20, 26, 30, 31, 32, 35, 37, 42], "faster": [0, 26, 41], "reason": [0, 23, 31, 37], "take": [0, 3, 7, 10, 19, 26, 32, 35, 36, 38], "amount": [0, 3, 7, 19], "varn": 0, "100": [0, 3, 19, 23, 32], "figur": [0, 35], "diagram": 0, "below": [0, 6, 16, 19, 23, 26, 34, 35, 37, 41], "consol": [0, 7, 15, 27], "But": [0, 32], "its": [0, 1, 6, 7, 19, 21, 23, 32, 36, 37, 39, 41], "time": [0, 3, 6, 7, 11, 15, 16, 19, 23, 26, 31, 32, 35, 38], "alwai": [0, 3, 19, 23], "odd": [0, 4, 26], "written": [0, 10, 16, 19, 23, 26, 27, 30, 42], "hexadecim": 0, "base": [0, 6, 10, 41], "16": [0, 23], "0x7ffd93f25244": 0, "implement": [0, 3, 4, 7, 11, 19, 25, 26, 30, 34, 42], "depend": [0, 32, 38], "sometim": [0, 3, 4, 31], "just": [0, 5, 10, 19, 26, 37, 41], "count": [0, 3, 4, 19], "anoth": [0, 3, 5, 11, 16, 19, 23, 26, 29, 41, 42], "wai": [0, 3, 7, 10, 13, 16, 19, 23, 26, 34, 35, 37, 39], "id": [0, 19, 26, 35], "upon": [0, 3, 8, 19, 31], "repeatedli": [0, 19], "suggest": [0, 19], "imposs": 0, "instead": [0, 4, 10, 16, 19, 23, 26], "must": [0, 3, 4, 5, 7, 10, 19, 21, 23, 26, 27, 34, 35, 38, 41], "arrow": [0, 34, 35], "imag": [0, 32, 37, 38, 41], "slower": [0, 41], "analog": [0, 37], "rule": [0, 10, 16, 26], "kei": [0, 4, 6, 8, 19], "asterisk": [0, 26], "between": [0, 7, 19, 23, 26, 30, 32, 34, 35, 37, 38], "variabletyp": 0, "ptrx": 0, "white": [0, 26], "gener": [0, 3, 4, 15, 19, 23, 27], "matter": 0, "ident": [0, 3, 6, 8, 19], "sometyp": 0, "variablenam": 0, "prefer": 0, "first": [0, 4, 5, 7, 16, 19, 23, 26, 31, 35], "clearer": 0, "programm": [0, 3, 15, 16, 23, 27, 31], "fact": [0, 3, 16, 23, 26], "closer": [0, 10, 26], "now": [0, 26, 34], "give": [0, 3, 16, 31, 35, 41, 42], "them": [0, 4, 19, 23, 26, 27, 34, 38, 41], "where": [0, 3, 4, 15, 16, 19, 23, 26, 27, 31, 42], "go": [0, 11, 19, 26, 31, 36, 41], "have": [0, 3, 4, 6, 7, 8, 10, 16, 19, 23, 26, 27, 28, 31, 32, 33, 35, 37, 38, 39, 41], "denot": [0, 16, 21], "ampersand": [0, 19], "exactli": [0, 19, 23, 34, 41], "indic": [0, 3, 7, 10, 19, 20, 23, 26, 36, 41], "ptrn": 0, "keep": [0, 19, 23, 32], "mind": 0, "constant": [0, 10, 20], "expand": 0, "9": [0, 7, 10, 19], "view": [0, 37], "onc": [0, 6, 10, 23, 26, 28, 35], "derefer": [0, 1], "mean": [0, 6, 7, 16, 19, 23, 26, 32], "front": [0, 19], "extend": [0, 26, 42], "17": 0, "line": [0, 16, 19, 23, 26, 27], "50": [0, 32, 33, 34], "cout": [0, 11, 15, 16, 19, 23, 26, 27], "endl": [0, 15, 16, 23], "were": [0, 26, 38, 42], "insert": [0, 5, 6, 7, 23], "7": [0, 3, 10], "8": [0, 3, 7, 10, 19, 35], "would": [0, 3, 5, 10, 15, 19, 23, 26, 30, 33, 34, 38, 41, 42], "compil": [0, 3, 16, 19, 23, 27, 29, 37, 42], "second": [0, 4, 10, 16, 19, 23, 26, 31, 35], "sentenc": [0, 19], "most": [0, 5, 15, 16, 23, 26, 31, 32, 34, 35], "your": [0, 5, 7, 16, 19, 26, 30, 31, 34, 35, 37, 38, 39, 41, 42], "machin": [0, 26, 27, 37], "warn": [0, 16, 23], "forget": [0, 10, 16, 23, 26, 31], "instruct": [0, 12, 16, 23, 26, 27], "bad": [0, 16], "dangl": 0, "catch": [0, 16, 26], "error": [0, 3, 4, 16, 17, 23, 26, 31, 37], "class": [0, 5, 7, 19, 23, 26, 31, 35], "expect": [0, 4, 5, 16, 23, 41], "NOT": 0, "content": [0, 19, 26, 27], "disast": 0, "don": [0, 32, 41], "t": [0, 10, 31, 32, 41], "outsid": [0, 12, 16, 41], "segment": 0, "area": 0, "reserv": [0, 7], "system": [0, 25, 31, 34, 42], "jump": 0, "messag": [0, 16, 23], "about": [0, 16, 19, 23, 26, 31], "fault": 0, "although": [0, 4], "seg": 0, "unlik": [0, 7, 13, 19, 26, 34], "elus": 0, "fairli": [0, 31], "local": [0, 19], "none": 0, "nullptr": 0, "noth": [0, 19], "older": [0, 5, 7, 23, 31], "edit": 0, "cap": 0, "better": [0, 3, 4, 19, 26, 37], "handl": [0, 25, 26, 28, 34, 42], "condit": [0, 6, 12, 13, 14, 15, 23, 28, 31, 42], "demonstr": 0, "work": [0, 3, 5, 6, 7, 19, 23, 26, 28, 31, 32, 34, 39, 41, 42], "x": [0, 26, 34], "On": 0, "iter": [0, 3, 4, 9, 11, 15, 19, 37, 42], "loop": [0, 7, 12, 14, 23, 28, 31, 42], "therebi": 0, "end": [0, 3, 4, 5, 6, 7, 15, 16, 19, 24, 25, 26, 35, 36, 41, 42], "tip": [0, 35], "veri": [0, 3, 5, 6, 7, 10, 11, 15, 16, 19, 23, 26, 28, 31, 32, 37, 42], "test": [0, 10, 12, 23], "whether": [0, 12, 32], "valid": [0, 10], "typic": [0, 3, 4, 5, 6, 7, 16, 23, 26], "digit": [0, 23, 37, 38], "desir": [0, 37], "encas": 0, "suppos": [0, 19, 23], "20": [0, 19, 23], "21": 0, "___": 0, "more": [0, 3, 4, 5, 6, 7, 8, 16, 19, 20, 23, 26, 31, 32, 33, 34, 37, 38], "That": [0, 23, 26], "incorrect": [0, 16, 26], "pleas": [0, 11, 15, 26, 28, 30, 35], "again": [0, 10, 19, 23, 26], "22": 0, "address": [1, 3], "oper": [1, 3, 5, 8, 15, 16, 25, 26, 28, 34, 41, 42], "us": [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 15, 16, 19, 21, 23, 27, 28, 29, 30, 31, 32, 34, 35, 37, 38, 39, 41, 42], "access": [1, 2, 3, 4, 5, 7, 16, 26, 42], "c": [1, 3, 6, 10, 13, 15, 16, 21, 22, 24, 25, 27, 28, 35, 39, 41], "data": [1, 3, 4, 6, 7, 8, 10, 19, 20, 23, 26, 28, 31, 42], "basic": [1, 28, 30, 35, 37], "broken": 1, "down": [1, 35, 36], "ani": [1, 4, 7, 19, 23, 27, 30, 38, 41], "simpler": 1, "element": [1, 3, 4, 5, 6, 7, 8, 19, 23, 26], "boolean": [1, 2, 3, 13, 15, 23, 42], "charact": [1, 2, 3, 5, 6, 8, 19, 23, 24, 26, 42], "pointer": [1, 2, 3, 4, 20, 21, 31, 42], "referenc": [1, 19], "read": [1, 25, 26, 28, 42], "numer": [2, 3, 42], "syntax": [2, 4, 16, 17, 19, 23, 26, 31, 34, 37, 39, 42], "valu": [2, 3, 4, 5, 6, 7, 8, 11, 15, 16, 20, 21, 22, 23, 26, 42], "from": [2, 4, 5, 6, 7, 10, 19, 20, 23, 26, 28, 31, 34, 35, 37, 38, 39, 41, 42], "The": [2, 3, 4, 5, 6, 7, 10, 11, 15, 16, 19, 21, 25, 28, 29, 31, 32, 34, 35, 37, 38, 39, 41, 42], "null": [2, 23, 24, 42], "summari": [2, 9, 14, 18, 22, 25, 29, 40, 42], "check": [2, 3, 5, 9, 14, 18, 25, 29, 37, 40, 42], "yourself": [2, 9, 14, 18, 25, 29, 30, 35, 40, 42], "glossari": [2, 9, 14, 18, 22, 25, 29, 40, 42], "match": [2, 9, 14, 18, 22, 25, 29, 40, 41, 42], "offer": [3, 5, 19, 31, 34, 37], "group": [3, 6, 8, 19, 21, 26, 31], "item": [3, 4, 5, 6, 7, 8, 16], "possibli": [3, 8], "zero": [3, 5, 6, 8, 16, 26], "share": [3, 8], "signific": [3, 8, 41], "vector": [3, 6, 8, 9, 42], "hash": [3, 6, 8, 9, 26, 42], "tabl": [3, 6, 8, 9, 35, 42], "among": 3, "structur": [3, 4, 6, 8, 11, 15, 16, 17, 19, 42], "consist": [3, 4, 8, 31, 38, 41], "index": [3, 4, 5, 7, 8, 16], "technic": [3, 10], "arrang": 3, "contigu": [3, 6, 7], "alloc": [3, 6, 7, 8, 37], "size": [3, 5, 7, 8, 32, 34, 37], "fix": [3, 6, 16, 23, 37], "process": [3, 16, 26, 37], "modern": [3, 5, 23, 38], "situat": [3, 11, 16], "speed": [3, 7, 31, 32, 36, 37, 41], "essenti": [3, 5, 23, 26], "hardwar": [3, 31, 37], "constraint": 3, "exist": [3, 7, 16, 23, 31, 35, 41], "flexibl": [3, 23], "might": [3, 4, 10, 26, 31, 35, 37], "ancestor": [3, 19], "list": [3, 6, 7, 16, 19, 31], "rememb": [3, 7, 31], "via": [3, 23, 42], "underli": [3, 4, 7, 16, 31], "similar": [3, 5, 6, 7, 10, 16, 19, 23, 26, 38], "except": [3, 4, 17, 26, 28, 41, 42], "start": [3, 11, 15, 28, 30, 32, 39], "permit": 3, "u": [3, 11, 19, 26, 28], "util": [3, 21, 34, 35, 39], "manipul": [3, 23], "entiti": 3, "direct": [3, 23, 26, 27, 32, 41], "individu": [3, 6, 35], "compon": [3, 23, 37], "languag": [3, 16, 19, 23, 26, 27, 28, 29, 30, 37, 39, 42], "real": 3, "low": [3, 27, 31], "level": [3, 27, 31], "avail": [3, 7, 16, 26, 30, 32, 34, 39, 41], "up": [3, 4, 6, 19, 23, 35, 36], "fast": [3, 4, 6, 31, 36, 37, 41], "unit": [3, 8, 36, 37, 41], "particular": [3, 4, 6, 8], "processor": [3, 8, 27], "design": [3, 7, 8, 19, 26, 37], "32": [3, 16], "64": 3, "bit": [3, 26], "For": [3, 7, 10, 14, 15, 16, 19, 23, 26, 31, 35, 37, 41, 42], "through": [3, 4, 9, 11, 23, 32, 42], "99": 3, "20000": 3, "20004": 3, "20008": 3, "20396": 3, "darrai": 3, "iarrai": 3, "arr2": 3, "3000": 3, "It": [3, 4, 6, 10, 16, 19, 24, 26, 27, 37, 39, 41], "determin": 3, "arr": 3, "1": [3, 5, 11, 15, 16, 19, 23, 32, 35, 41], "b": [3, 10, 34], "arr3": 3, "ddoubl": 3, "cautiou": 3, "control": [3, 15, 31, 32, 39, 42], "danger": 3, "trade": 3, "off": 3, "protect": [3, 7, 31], "never": 3, "beyond": 3, "catastroph": 3, "phrase": [3, 15], "care": [3, 31], "wish": 3, "great": [3, 31, 39], "everyth": [3, 5, 19, 26, 39], "ask": [3, 16, 19, 23, 34], "come": [3, 37], "cost": 3, "minim": 3, "perplex": 3, "next": [3, 7, 10, 16, 19, 23, 26, 28], "otherwis": [3, 4, 23], "otherdata": 3, "correct": [3, 5, 10, 19, 23, 26], "dictionari": 4, "associ": [4, 6, 8, 23, 24], "pair": [4, 6, 8], "term": [4, 26, 30], "map": [4, 8], "function": [4, 6, 7, 8, 10, 13, 16, 17, 20, 21, 24, 25, 28, 29, 31, 32, 42], "nevertheless": 4, "kind": [4, 16, 26, 31, 33, 41], "input": [4, 19, 23, 24, 27, 28, 29, 32, 42], "unordered_map": 4, "much": [4, 5, 7, 23, 26, 31, 34, 42], "ad": [4, 19, 32], "later": [4, 26, 31], "organ": 4, "rather": [4, 10, 19, 23, 26, 37], "extrem": 4, "sequenti": [4, 5, 6, 8], "method": [4, 6, 7, 15, 19, 20, 23, 31, 32, 34, 35, 39, 41], "describ": [4, 39], "action": [4, 32, 36, 41], "mymap": 4, "k": 4, "throw": [4, 16], "eras": [4, 5, 7], "entri": 4, "begin": [4, 16, 23, 26, 28, 31, 36, 41], "past": 4, "letter": [5, 6, 19], "old": 5, "style": 5, "arrai": [5, 6, 7, 8, 9, 21, 22, 23, 24, 37, 42], "distinct": 5, "cppchar": 5, "cppstring": 5, "hello": [5, 11, 15, 26], "world": [5, 11, 15, 26, 34], "cstring": 5, "version": [5, 7, 23, 26, 28, 31, 37, 39], "filenam": [5, 16, 23, 26], "11": [5, 23, 26], "onward": 5, "sinc": [5, 10, 16, 26, 36], "nicer": 5, "recommend": [5, 26], "definit": [5, 19, 20, 21, 26, 27, 35], "sequenc": [5, 8, 11, 23], "huge": 5, "astr": 5, "string1": 5, "astring2": 5, "concaten": [5, 26], "append": [5, 7], "push_back": [5, 7], "pop_back": [5, 7], "delet": [5, 7, 35], "last": [5, 7, 35], "j": 5, "find": [5, 6, 7, 26, 34, 42], "occurr": 5, "complet": [5, 16, 19, 26, 32, 41], "unordered_set": 6, "uniqu": [6, 8, 31], "import": [6, 15, 19, 23, 26, 27, 37, 41], "templat": [6, 7], "unorderd_set": 6, "allow": [6, 11, 16, 19, 23, 24, 26, 31, 32, 34, 37], "retriev": 6, "immut": [6, 8], "therefor": [6, 19], "contain": [6, 7, 8, 21, 26, 27], "duplic": 6, "comma": 6, "delimit": 6, "enclos": [6, 10], "curli": [6, 10, 26, 34], "brace": [6, 10], "myset": 6, "6": [6, 10, 32, 41], "78": 6, "support": [6, 10, 13, 15, 19, 21, 26, 31], "familiar": [6, 28, 41], "those": 6, "mathemat": [6, 35], "provid": [6, 15, 16, 23, 26, 35, 37, 39], "detect": [6, 16, 26], "checker": 6, "compar": [6, 10, 19, 32, 37], "paramet": [6, 20, 21, 22, 25, 28, 42], "until": [6, 12, 15, 16, 23, 39], "section": [6, 20, 23, 26, 42], "reach": [6, 23], "mani": [6, 15, 16, 23, 26, 30, 31, 32, 37, 38, 39, 41, 42], "appli": [6, 7, 19, 37], "relat": [6, 32, 39], "best": [6, 19, 23, 31], "choic": [6, 23, 31, 35], "length": [6, 7, 19, 23], "friendli": 7, "featur": [7, 19, 28, 31, 35, 38, 40, 42], "storag": [7, 23], "travers": 7, "randomli": [7, 19], "automat": [7, 10, 26, 41], "new": [7, 19, 26, 28, 31], "part": [7, 15, 26, 31, 37], "realloc": 7, "homogen": 7, "stl": 7, "notat": [7, 23], "myvector": 7, "myvect": 7, "far": [7, 19, 23], "capac": 7, "task": [7, 19, 23, 38], "grow": [7, 32], "extra": [7, 26, 39], "accommod": 7, "growth": 7, "thu": [7, 19, 32], "strictli": 7, "found": [7, 16, 37], "sizeof": 7, "secondari": 7, "been": [7, 16, 23, 27, 35, 38, 41], "comment": [7, 19, 27, 28, 29, 42], "out": [7, 10, 15, 19, 23, 26, 32], "98": 7, "success": [7, 23, 26], "numssiz": 7, "Then": [7, 26], "print": [7, 10, 11, 15, 16, 19, 26, 37], "good": [7, 16, 23, 26, 30, 31, 37, 41], "idea": [7, 23], "save": [7, 26, 35], "too": [7, 23, 26], "larg": [7, 31, 32, 33, 41], "move": [7, 28, 32, 36, 37, 41], "larger": 7, "copi": [7, 19, 26, 35], "surpris": [7, 23, 35], "biggest": 7, "const": [8, 16, 19, 20, 23], "unabl": 8, "non": [8, 19, 21, 23], "mutabl": 8, "abil": [8, 19], "unord": [8, 9, 42], "write": [10, 11, 16, 19, 25, 26, 28, 31, 34, 36, 41, 42], "statement1": 10, "statement2": 10, "pattern": [10, 38, 41], "defin": [10, 22, 23, 27, 35, 38, 42], "block": [10, 12, 15, 16, 26], "indent": [10, 26, 34, 35], "parenthesi": 10, "around": [10, 26, 35, 37, 39], "nest": [10, 13, 16], "coupl": [10, 26], "advantag": [10, 31], "f": 10, "necessari": [10, 41], "hint": [10, 19, 23], "act": [10, 13, 35, 37], "someth": [10, 13, 19, 23, 32], "under": [10, 13, 31, 42], "certain": [10, 11, 13, 23, 24, 26, 31, 32, 41], "against": [10, 12], "enumer": 10, "grade": 10, "frankli": 10, "model": [10, 31], "easi": [10, 26, 37, 42], "put": [10, 25, 26, 36, 42], "break": [10, 12, 23], "altern": [10, 23, 26, 37, 38, 42], "execut": [10, 11, 15, 16, 19, 23, 26, 27, 31], "95": 10, "omit": [10, 19], "avoid": [10, 16, 23], "prevent": [10, 19], "pass": [10, 20, 21, 22, 25, 31, 42], "even": [11, 19, 26, 31, 32], "though": [11, 19, 26, 31], "construct": [11, 15, 28, 41], "wide": [11, 31, 36, 37, 38], "varieti": [11, 27, 35, 38, 39], "across": [11, 35], "rang": [11, 38, 41], "easili": [11, 16], "common": [11, 23, 28, 30, 31, 38, 42], "repetit": [11, 15, 38], "over": [11, 19, 31, 32, 38, 39], "five": [11, 15], "full": [11, 35], "squar": [11, 19, 21, 23, 34, 35, 41], "iostream": [11, 15, 16, 23, 26], "namespac": [11, 15, 16, 23, 32, 33], "std": [11, 15, 16, 23, 26], "main": [11, 15, 16, 19, 23, 28, 29, 32, 33, 42], "counter": [11, 15, 35], "select": [11, 15, 35], "answer": [11, 15, 19, 23], "appear": [11, 15, 26, 27, 35], "termin": [12, 16, 23, 24], "current": [12, 23, 31, 36], "resum": 12, "switch": [12, 13, 14, 42], "seri": 12, "repeat": [12, 15], "infinit": [12, 19], "met": 12, "els": [13, 14, 42], "behav": [13, 19], "elif": [13, 14, 42], "express": [13, 16, 17], "simpl": [14, 19, 23, 26, 28, 37, 42], "earlier": [15, 23], "algorithm": [15, 16, 19], "variou": [15, 23, 37], "choos": [15, 16, 19, 23, 32], "circumst": [15, 17, 31], "bodi": [15, 19, 21], "5": [15, 16, 19, 23, 33, 35, 38], "interact": [15, 26, 31, 37], "purpos": [15, 19, 30, 37], "fragment": [15, 19, 23], "caus": [15, 16, 19], "satisfi": 15, "due": [15, 16, 34, 35, 37, 39], "logic": [15, 16, 17, 26], "These": [15, 16, 19, 23, 26, 31, 37, 38, 42], "saw": 15, "occur": [16, 17, 23, 26, 42], "known": [16, 19, 26, 38], "made": [16, 38], "mistak": 16, "semicolon": 16, "exit": [16, 23], "statu": 16, "cpp": [16, 26, 42], "conform": 16, "usual": [16, 20, 26], "frequent": [16, 23], "learn": [16, 26, 29, 30, 42], "wrong": 16, "translat": [16, 26, 37, 42], "lead": 16, "bound": [16, 34], "runtim": [16, 17, 23], "think": [16, 19, 26, 30, 31], "fatal": 16, "deal": [16, 25, 34, 42], "intervent": 16, "own": [16, 19, 26, 30, 31, 32, 35, 39, 41], "warrant": 16, "sai": [16, 23], "thrown": 16, "enter": [16, 23, 26, 39], "wdiv": 16, "correspond": [16, 19], "back": [16, 26, 36, 39, 41], "event": 16, "firstnum": 16, "secondnum": 16, "div": 16, "continu": [16, 26], "along": 16, "manag": [16, 37], "caught": 16, "stop": [16, 23, 24, 32], "our": [16, 19, 23, 26, 28, 35, 39, 41], "insid": [16, 19, 41], "folder": [16, 23], "open": [16, 23, 42], "file": [16, 24, 25, 26, 27, 28, 42], "ideal": [16, 23], "txt": [16, 23], "prompt": [16, 23, 26], "default": [16, 32, 34, 35, 39], "applic": [16, 37, 40, 42], "fstream": [16, 23], "void": [16, 19, 20, 21, 23], "printfil": 16, "ifstream": [16, 23], "in_stream": [16, 23], "close": [16, 23, 37, 41], "na": 16, "ch": 16, "eof": [16, 24, 25, 42], "cin": [16, 23, 26, 27], "tri": [16, 19, 23], "msg": 16, "cerr": 16, "defaultfil": 16, "offici": 16, "document": [16, 26, 28, 37], "produc": [16, 19], "unintend": 16, "unexpect": 16, "undefin": 16, "pinpoint": 16, "confus": [16, 23], "problem": [16, 19, 23], "respons": 17, "unusu": 17, "perform": [17, 19, 20, 23, 31, 32, 37], "incorrectli": 17, "hide": 19, "detail": [19, 37], "timestwo": 19, "formal": [19, 31], "num": [19, 26], "piec": [19, 38], "hidden": 19, "box": 19, "invok": [19, 26, 31], "turn": [19, 26, 32, 36, 41], "invoc": 19, "timestwovoid": 19, "similarli": [19, 32], "fruit": [19, 21], "still": [19, 23, 31], "could": [19, 23, 26, 32, 35], "step": [19, 26, 37], "further": [19, 26], "root": 19, "techniqu": [19, 23], "newton": 19, "approxim": 19, "converg": 19, "equat": 19, "newguess": 19, "frac": 19, "oldguess": 19, "n": [19, 23, 32, 42], "guess": [19, 26], "subsequ": [19, 23], "accept": [19, 20, 26], "anyth": [19, 32], "intend": [19, 30], "marker": [19, 23, 37], "ignor": [19, 26], "mechan": [19, 23], "involv": [19, 23], "argument": [19, 20, 23], "origin": [19, 35, 37, 39, 42], "functionexampl": 19, "inputvar": 19, "nextvar": 19, "callingfunct": 19, "myvar": 19, "within": [19, 20, 35], "10x2": 19, "notic": [19, 41], "seen": 19, "sent": 19, "attach": [19, 41], "header": [19, 27, 29, 42], "swap": 19, "swap_valu": 19, "revers": 19, "abl": [19, 23, 26, 31], "analyz": 19, "func1": 19, "func2": 19, "func": 19, "maintain": [19, 31, 37], "neither": [19, 32], "nor": [19, 34], "bracket": [19, 21, 23, 26, 34], "averag": 19, "hour": 19, "inform": [19, 23, 26, 31, 42], "total": [19, 32], "decim": [19, 23], "effect": [19, 31, 32, 35, 37, 38], "privat": 19, "reduc": 19, "impact": [19, 31], "perman": 19, "third": [19, 31, 32], "sum": [19, 23], "add_list": 19, "examin": [19, 30], "ourselv": 19, "accident": 19, "add": [19, 23, 34, 36], "head": 19, "potenti": 19, "multipl": [19, 21, 35], "distinguish": 19, "nice": 19, "accomplish": 19, "12": [19, 23, 26, 32], "benefit": [19, 26, 37], "realli": 19, "cover": [19, 37, 38, 41], "heard": 19, "monkei": 19, "theorem": 19, "hit": 19, "random": [19, 34], "typewrit": 19, "keyboard": [19, 26, 28], "almost": [19, 32, 35, 39], "text": [19, 23, 26, 32, 36, 41, 42], "william": 19, "shakespear": 19, "replac": [19, 23, 30, 37], "ll": 19, "shoot": 19, "methink": 19, "weasel": 19, "re": 19, "browser": 19, "fire": 19, "favorit": 19, "simul": 19, "28": 19, "26": 19, "alphabet": 19, "plu": 19, "score": 19, "goal": 19, "easier": [19, 31], "progress": [19, 28, 32], "1000": [19, 23], "improv": [19, 42], "hill": 19, "climb": 19, "previou": [19, 23], "unchang": 20, "procedur": 20, "overload": [20, 22, 42], "scope": 20, "place": [20, 23, 35], "versu": [22, 23, 42], "out_stream": 23, "ofstream": 23, "alreadi": [23, 28, 31], "setf": 23, "format": [23, 26], "briefli": 23, "flag": [23, 24], "scientif": 23, "io": 23, "tell": [23, 26, 27, 32, 36, 37, 41], "showpoint": 23, "displai": [23, 26, 32, 37], "connect": 23, "myfil": 23, "assum": [23, 28], "directori": 23, "pictori": 23, "anotherfil": 23, "pictor": 23, "flow": [23, 26], "wipe": 23, "whatev": [23, 26], "fed": 23, "disconnect": 23, "concern": 23, "sourc": [23, 26, 27, 42], "routin": 23, "fail": 23, "predecessor": 23, "neg": [23, 35], "alright": 23, "corrupt": 23, "attempt": [23, 30], "safe": 23, "quit": [23, 26], "apologet": 23, "cstdlib": 23, "enabl": 23, "exact": 23, "25": 23, "15": 23, "seper": 23, "tab": [23, 26], "2515": 23, "inputn": 23, "assumpt": 23, "knew": 23, "incorpor": [23, 26], "hard": 23, "drive": 23, "disastr": 23, "develop": [23, 26, 37], "environ": [23, 26], "interpret": [23, 26, 27, 31, 37], "incident": 23, "sign": [23, 26], "highlight": 23, "mention": 23, "neater": 23, "scan": 23, "make_neat": 23, "illustr": [23, 26, 35], "rawdata": 23, "dat": 23, "screen": [23, 26, 28, 32, 33, 34, 35, 37, 41], "neat": 23, "neatli": 23, "iomanip": 23, "setw": 23, "messy_fil": 23, "neat_fil": 23, "number_after_decimalpoint": 23, "field_width": 23, "fin": 23, "fout": 23, "oop": [23, 31], "showpo": 23, "stuff": [23, 26], "jan": [23, 42], "pearc": [23, 42], "30": 23, "40": 23, "500": 23, "300": [23, 34], "And": [23, 31, 34], "00000": 23, "successfulli": [23, 26], "seem": 23, "realiz": 23, "previous": [23, 36], "talk": [23, 26], "myfilenam": 23, "string_nam": 23, "len": 23, "maximum": [23, 32, 34], "inherit": [23, 31], "peopl": [23, 26, 31], "three": [23, 32], "in_file_nam": 23, "max": 23, "out_file_nam": 23, "taken": [23, 36], "nenter": 23, "condens": 23, "firstn": 23, "secondn": 23, "thirdn": 23, "calcul": 23, "iosteam": 23, "out_steam": 23, "instanc": 23, "carri": 23, "fill": [23, 35, 36, 41], "blank": 23, "101": 23, "job": [23, 26, 31], "No": [23, 26], "twice": 23, "observ": [23, 37, 38], "member": [24, 25, 42], "stream": [24, 25, 26, 42], "abstract": [24, 31, 37, 38], "send": [24, 26], "receiv": [24, 42], "unknown": 24, "byte": 24, "metaphor": 24, "water": 24, "Of": [24, 25, 42], "o": [25, 42], "failur": [25, 42], "honor": 26, "tradit": 26, "scienc": [26, 31, 37], "reli": 26, "complic": [26, 32, 37], "facilit": 26, "core": 26, "few": [26, 32, 34, 35, 37, 39], "lot": [26, 31, 32, 41], "edg": [26, 35, 38], "harder": 26, "worri": [26, 41], "skill": 26, "scientist": 26, "carefulli": 26, "soon": 26, "fade": 26, "background": 26, "littl": 26, "my": 26, "big": 26, "happi": 26, "command": [26, 37, 39, 41], "integr": 26, "wonder": 26, "earli": 26, "nativ": 26, "typo": 26, "shortli": 26, "chanc": 26, "preprocessor": [26, 27], "classnam": 26, "librarynam": 26, "angl": [26, 32], "etc": 26, "implicitli": 26, "explicitli": [26, 31], "explicit": 26, "whitespac": 26, "mostli": 26, "inher": 26, "semi": 26, "colon": 26, "conclud": 26, "perfectli": 26, "lack": [26, 37], "meaning": 26, "difficult": 26, "human": 26, "strongli": 26, "readabl": [26, 27], "appreci": [26, 30], "debug": 26, "peek": 26, "correctli": [26, 35], "rearrang": 26, "equival": [26, 32, 37, 41], "forward": [26, 32, 33, 36, 37, 39, 41], "slash": 26, "rest": 26, "treat": [26, 27], "tripl": 26, "multi": 26, "docstr": 26, "legal": 26, "span": 26, "sort": 26, "channel": 26, "destin": 26, "sink": 26, "stand": [26, 27], "devic": 26, "somewhat": [26, 34], "cours": [26, 30, 42], "rel": 26, "activ": 26, "feel": [26, 30, 35], "free": [26, 30, 35], "suffici": 26, "depth": 26, "meaningless": 26, "surround": [26, 34], "delin": 26, "14": [26, 41], "conjunct": 26, "extract": 26, "multilin": 27, "transform": 27, "high": [27, 31, 37], "necessarili": 27, "dure": [27, 37], "pre": 27, "script": [27, 31], "cpu": 27, "book": [28, 30, 42], "journei": 28, "nearli": [28, 37], "behind": [28, 35], "additon": 28, "updat": 28, "forthcom": 28, "welcom": [29, 42], "java": [29, 42], "javascript": [29, 42], "ebook": 30, "student": [30, 37, 42], "least": 30, "experi": [30, 41], "build": [30, 38], "philosophi": 30, "strength": [30, 31], "weak": 30, "resourc": [30, 37], "teach": 30, "publish": 30, "creativ": [30, 42], "licens": [30, 42], "encourag": 30, "love": 30, "modif": 30, "fork": 30, "me": [30, 35], "sever": [31, 35], "spars": 31, "clear": 31, "interest": 31, "turtl": [31, 32, 33, 35, 36, 38, 39, 42], "upfront": 31, "sens": 31, "rubi": 31, "perl": 31, "industri": [31, 37], "project": 31, "categori": 31, "ada": 31, "draw": [31, 36, 37, 39, 41], "knowledg": 31, "regularli": 31, "field": 31, "advanc": [31, 40, 42], "focu": 31, "enorm": 31, "small": [31, 38], "influenc": 31, "newer": 31, "todai": [31, 38], "particularli": [31, 37, 42], "orient": 31, "four": [31, 34, 35, 38, 39], "polymorph": 31, "encapsul": 31, "increas": 31, "virtual": 31, "realiti": 31, "2d": 31, "3d": 31, "game": [31, 37], "engin": 31, "top": [31, 35], "advertis": 31, "tool": [32, 37, 39], "dictat": 32, "inner": [32, 39], "themselv": 32, "tracer": [32, 39], "undo": [32, 33, 36], "mode": [32, 34], "measur": [32, 41], "turtlescreen": [32, 33, 40, 42], "posit": [32, 34, 35, 36], "clockwis": [32, 35], "rotat": 32, "counterclockwis": 32, "sm_standard": 32, "east": 32, "sm_logo": 32, "north": 32, "regard": [32, 37], "degre": 32, "radian": 32, "By": [32, 42], "90": 32, "5708f": 32, "drawn": 32, "belong": 32, "frame": [32, 36, 39], "anim": [32, 39], "achiev": 32, "quickli": 32, "ts_fastest": [32, 41], "disabl": 32, "movement": 32, "regardless": 32, "ct": [32, 33, 34, 35, 41], "begin_fil": [32, 41], "end_fil": [32, 41], "visual": [32, 35, 37], "track": 32, "cturtl": [32, 33, 41, 42], "hpp": [32, 33], "60": 32, "bye": [32, 33, 41], "queue": [32, 33, 36], "period": 32, "setundobuff": 32, "doesn": 32, "editor": 32, "scr": 33, "144": 33, "shape": [33, 34, 36, 37, 38, 39, 40, 41, 42], "activecod": 33, "vari": [34, 38], "primarili": 34, "notabl": 34, "color": [34, 36, 38, 39, 41], "g": 34, "red": 34, "green": [34, 41], "blue": 34, "pencolor": [34, 36, 41], "font": 34, "contrast": 34, "challeng": 34, "furthermor": [34, 37], "canva": [34, 36, 39, 41], "minimum": 34, "coordin": [34, 35, 36, 39, 41], "limit": [34, 35, 39], "six": 34, "circl": 34, "triangl": [34, 35, 37, 41], "classic": 34, "shift": 34, "middl": 34, "former": [34, 41], "y": [34, 35], "600x": 34, "400y": 34, "50x": 34, "50y": 34, "650x": 34, "350y": 34, "latter": [34, 41], "goto": [34, 36, 41], "600": 34, "400": 34, "450": 34, "425x": 34, "300y": 34, "inhabit": 35, "custom": 35, "indented_triangl": 35, "primit": 35, "polygon": 35, "arbitrari": 35, "graphic": [35, 37, 42], "abid": 35, "bottom": 35, "higher": 35, "0x": 35, "0y": 35, "natur": 35, "upsid": 35, "upside_down_triangl": 35, "mess": 35, "trace": 35, "clearstamp": 35, "placement": 35, "backward": [36, 37], "beginfil": [36, 41], "path": 36, "delai": 36, "endfil": [36, 41], "finish": [36, 41], "outlin": [36, 41], "fillcolor": [36, 41], "collor": 36, "certin": 36, "penup": [36, 41], "pick": 36, "paintbrush": 36, "pendown": [36, 41], "width": [36, 41], "princip": 37, "safeti": 37, "consider": 37, "restrict": 37, "aspect": 37, "skip": 37, "favor": 37, "immedi": 37, "intens": 37, "heavili": 37, "leverag": 37, "pixel": 37, "creation": 37, "chunk": 37, "commun": 37, "gpu": 37, "video": 37, "softwar": 37, "movi": 37, "popular": 37, "introduc": 37, "beginn": 37, "logo": [37, 39], "walli": 37, "feurzeig": 37, "seymour": 37, "papert": 37, "cynthia": 37, "solomon": 37, "1967": 37, "imagin": 37, "highli": 37, "fractal": 37, "commonli": [37, 41], "suit": 37, "educ": [37, 39], "deep": 37, "live": 37, "represent": 37, "afford": 37, "opportun": 37, "facet": 37, "wait": 37, "anxious": 37, "churn": 37, "concept": 37, "recurs": 37, "jess": [37, 42], "walker": [37, 42], "schadler": [37, 42], "berea": [37, 42], "colleg": [37, 42], "summer": 37, "2019": 37, "github": [37, 42], "http": [37, 42], "com": 37, "walkerj": 37, "art": 38, "realist": 38, "impossibli": 38, "materi": 38, "ancient": 38, "sumerian": 38, "dye": 38, "dry": 38, "clai": 38, "mosaic": 38, "compos": 38, "overlap": 38, "gap": 38, "brick": 38, "floor": 38, "ceram": 38, "tile": 38, "interlock": 38, "medium": 38, "artist": 38, "wood": 38, "recent": [38, 39], "physic": 38, "rich": 38, "criteria": 38, "chosen": 38, "fine": 38, "conceptu": 39, "capabl": 39, "self": 39, "mainli": 39, "preset": 39, "alter": 39, "manual": 39, "geometri": [40, 42], "stamp": [40, 42], "v": [40, 42], "practic": [40, 42], "tessel": [40, 42], "hasn": 41, "textbook": 41, "exitonclick": 41, "premis": 41, "pen": 41, "tail": 41, "paint": 41, "hare": 41, "alongsid": 41, "fastest": 41, "slowest": 41, "prefix": 41, "ts_fast": 41, "ts_normal": 41, "slow": 41, "ts_slow": 41, "ts_slowest": 41, "annot": 41, "purpl": 41, "center": 41, "guid": 41, "c++": 42, "computer sci": 42, "brad": 42, "miller": 42, "runeston": 42, "introduct": 42, "thank": 42, "visit": 42, "issu": 42, "tracker": 42, "url": 42, "page": 42, "especi": 42, "contact": 42, "author": 42, "email": 42, "www": 42, "edu": 42, "csc": 42, "faculti": 42, "staff": 42, "dr": 42, "strong": 42, "framework": 42, "labor": 42, "undergradu": 42, "fund": 42, "contribut": 42, "team": 42, "excel": 42, "web": 42, "gratitud": 42, "had": 42, "vision": 42, "graph": 42, "hi": 42, "port": 42, "janic": 42, "l": 42, "bradlei": 42, "attribut": 42, "noncommerci": 42, "sharealik": 42}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"us": [0, 26], "data": [0, 2, 9], "c": [0, 2, 4, 5, 7, 19, 23, 26, 29, 30, 31, 34, 37, 40, 42], "numer": 0, "boolean": 0, "tabl": [0, 4, 5], "1": 0, "relat": 0, "logic": 0, "oper": [0, 4, 7, 23], "charact": 0, "pointer": 0, "syntax": 0, "The": [0, 23, 26], "address": 0, "access": 0, "valu": [0, 19], "from": 0, "null": 0, "summari": [0, 6, 13, 16, 21, 23, 26, 39], "check": [0, 6, 10, 11, 16, 19, 23, 26, 33], "yourself": [0, 6, 10, 11, 16, 23, 26, 33], "glossari": [1, 8, 12, 17, 20, 24, 27, 36], "match": [1, 4, 5, 6, 7, 8, 12, 17, 20, 24, 27, 36], "atom": 2, "type": [2, 9, 26], "collect": [3, 9], "arrai": [3, 19], "hash": 4, "7": 4, "import": 4, "provid": [4, 5], "string": [5, 23], "4": 5, "method": 5, "unord": 6, "set": 6, "vector": 7, "common": 7, "iter": 7, "through": 7, "condit": 10, "simpl": 10, "els": 10, "elif": 10, "switch": 10, "For": 11, "loop": [11, 15], "control": 14, "structur": 14, "while": 15, "except": [16, 18], "handl": [16, 18, 23], "defin": 19, "function": [19, 22, 23, 26], "paramet": [19, 23], "pass": [19, 23], "versu": 19, "refer": 19, "overload": 19, "self": 19, "challeng": 19, "file": 23, "member": 23, "precis": 23, "deal": 23, "i": 23, "o": 23, "failur": 23, "read": 23, "write": 23, "stream": 23, "end": 23, "Of": 23, "eof": 23, "system": 23, "implement": 23, "name": 23, "put": 23, "all": 23, "togeth": 23, "input": [25, 26], "output": [25, 26], "let": 26, "": [26, 34], "look": 26, "program": [26, 31], "compil": 26, "header": 26, "librari": 26, "main": 26, "comment": 26, "standard": 26, "declar": 26, "introduct": [28, 29, 37, 40], "python": [29, 30, 34, 42], "programm": [29, 30, 42], "welcom": 30, "why": 31, "learn": 31, "anoth": 31, "languag": 31, "java": 31, "javascript": 31, "advanc": 32, "featur": 32, "turtl": [34, 37, 40, 41], "v": 34, "geometri": 35, "shape": 35, "stamp": 35, "what": 37, "ar": 37, "practic": 38, "applic": 38, "tessel": 38, "graphic": 40, "turtlescreen": 41, "report": 42, "typo": 42, "other": 42, "problem": 42, "acknowledg": 42, "index": 42, "search": 42}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Using Data in C++": [[0, "using-data-in-c"]], "Numeric Data": [[0, "numeric-data"]], "Boolean Data": [[0, "boolean-data"]], "Table 1: C++ Relational and Logical Operators": [[0, "id1"]], "Character Data": [[0, "character-data"]], "Pointers": [[0, "pointers"]], "Pointer Syntax": [[0, "pointer-syntax"]], "The address-of operator, &": [[0, "the-address-of-operator"]], "Accessing Values from Pointers": [[0, "accessing-values-from-pointers"]], "The null pointer": [[0, "the-null-pointer"]], "Summary": [[0, "summary"], [6, "summary"], [13, "summary"], [16, "summary"], [21, "summary"], [23, "summary"], [26, "summary"], [39, "summary"]], "Check Yourself": [[0, "check-yourself"], [6, "check-yourself"], [10, "check-yourself"], [10, "id1"], [16, "check-yourself"], [23, "check-yourself"], [33, "check-yourself"]], "Glossary": [[1, "glossary"], [8, "glossary"], [12, "glossary"], [17, "glossary"], [20, "glossary"], [24, "glossary"], [27, "glossary"], [36, "glossary"]], "Matching": [[1, "matching"], [4, "matching"], [5, "matching"], [6, "matching"], [7, "matching"], [8, "matching"], [12, "matching"], [17, "matching"], [20, "matching"], [24, "matching"], [27, "matching"], [36, "matching"]], "Atomic C++ Data Types": [[2, "atomic-c-data-types"]], "Collections": [[3, "collections"]], "Arrays": [[3, "arrays"]], "Hash Tables": [[4, "hash-tables"]], "Table 7: Important Hash Table Operators Provided in C++": [[4, "id1"]], "Strings": [[5, "strings"]], "Table 4: String Methods Provided in C++": [[5, "id1"]], "Unordered Sets": [[6, "unordered-sets"]], "Vectors": [[7, "vectors"]], "Common C++ Vector Operators": [[7, "id1"]], "Iterating through Vectors": [[7, "iterating-through-vectors"]], "Collection Data Types": [[9, "collection-data-types"]], "Conditionals": [[10, "conditionals"]], "Simple if": [[10, "simple-if"]], "if else": [[10, "if-else"]], "elif": [[10, "elif"]], "switch": [[10, "switch"]], "For Loops": [[11, "for-loops"]], "Check yourself": [[11, "check-yourself"], [26, "check-yourself"]], "Control Structures": [[14, "control-structures"]], "While Loops": [[15, "while-loops"]], "Exception Handling": [[16, "exception-handling"], [18, "exception-handling"]], "Defining C++ Functions": [[19, "defining-c-functions"]], "Parameter Passing: by Value versus by Reference": [[19, "parameter-passing-by-value-versus-by-reference"]], "Arrays as Parameters in Functions": [[19, "arrays-as-parameters-in-functions"]], "Function Overloading": [[19, "function-overloading"]], "Self Check": [[19, null]], "Self Check Challenge": [[19, null]], "Functions": [[22, "functions"]], "File Handling": [[23, "file-handling"]], "Member Functions and Precision": [[23, "member-functions-and-precision"]], "File Operations": [[23, "file-operations"]], "Dealing with I/O Failures": [[23, "dealing-with-i-o-failures"]], "Reading and Writing with File Streams": [[23, "reading-and-writing-with-file-streams"]], "The End-Of-File (EOF) for Systems that Implement eof()": [[23, "the-end-of-file-eof-for-systems-that-implement-eof"]], "Passing Streams as Parameters": [[23, "passing-streams-as-parameters"]], "File Names and C-Strings": [[23, "file-names-and-c-strings"]], "Putting it all Together": [[23, "putting-it-all-together"]], "Input and Output": [[25, "input-and-output"]], "Let\u2019s look at a C++ program": [[26, "let-s-look-at-a-c-program"]], "Compilation": [[26, "compilation"]], "Using headers and libraries": [[26, "using-headers-and-libraries"]], "The main function": [[26, "the-main-function"]], "Comments in C++": [[26, "comments-in-c"]], "Standard Output": [[26, "standard-output"]], "Standard Input": [[26, "standard-input"]], "Type Declarations": [[26, "type-declarations"]], "Introduction": [[28, "introduction"], [37, "introduction"]], "Introduction to C++ for Python Programmers": [[29, "introduction-to-c-for-python-programmers"], [29, null]], "Welcome to C++ for Python Programmers": [[30, "welcome-to-c-for-python-programmers"]], "Why Learn Another Programming Language?": [[31, "why-learn-another-programming-language"]], "Why Learn C++? Why not Java or Javascript?": [[31, "why-learn-c-why-not-java-or-javascript"]], "Advanced Features": [[32, "advanced-features"]], "Python\u2019s turtle vs C-Turtle": [[34, "python-s-turtle-vs-c-turtle"]], "Geometry, Shapes, and Stamps": [[35, "geometry-shapes-and-stamps"]], "What are Turtles?": [[37, "what-are-turtles"]], "Turtles in C++": [[37, "turtles-in-c"]], "Practical Application - Tessellation": [[38, "practical-application-tessellation"]], "Graphics in C++": [[40, "graphics-in-c"]], "Introduction to Turtles for C++": [[40, null]], "Turtle & TurtleScreen": [[41, "turtle-turtlescreen"]], "C++ for Python Programmers": [[42, "c-for-python-programmers"]], "Reporting Typos or Other Problems": [[42, "reporting-typos-or-other-problems"]], "Acknowledgements": [[42, "acknowledgements"]], "Index and Search": [[42, "index-and-search"]]}, "indexentries": {"address-of": [[1, "term-address-of"]], "atomic data type": [[1, "term-atomic-data-type"]], "bool": [[1, "term-bool"]], "char": [[1, "term-char"]], "dereference": [[1, "term-dereference"]], "double": [[1, "term-double"]], "float": [[1, "term-float"]], "int": [[1, "term-int"]], "array": [[8, "term-array"]], "collection": [[8, "term-collection"]], "const (immutable)": [[8, "term-const-immutable"]], "hash table": [[8, "term-hash-table"]], "non-const (mutable)": [[8, "term-non-const-mutable"]], "set": [[8, "term-set"]], "string": [[8, "term-string"]], "vector": [[8, "term-vector"]], "word": [[8, "term-word"]], "break": [[12, "term-break"]], "case": [[12, "term-case"]], "conditional": [[12, "term-conditional"]], "loop": [[12, "term-loop"]], "switch": [[12, "term-switch"]], "exception": [[17, "term-exception"]], "logic error": [[17, "term-logic-error"]], "runtime error": [[17, "term-runtime-error"]], "syntax error": [[17, "term-syntax-error"]], "argument": [[20, "term-argument"]], "const": [[20, "term-const"]], "function": [[20, "term-function"]], "overloading": [[20, "term-overloading"]], "parameter": [[20, "term-parameter"]], "pointer": [[20, "term-pointer"]], "void": [[20, "term-void"]], "end-of-file(eof)": [[24, "term-End-Of-File-EOF"]], "c-string": [[24, "term-c-string"]], "member function": [[24, "term-member-function"]], "stream": [[24, "term-stream"]], "#include": [[27, "term-include"]], "cin": [[27, "term-cin"]], "comment": [[27, "term-comment"]], "compiler": [[27, "term-compiler"]], "cout": [[27, "term-cout"]], "dynamically typed": [[27, "term-dynamically-typed"]], "header": [[27, "term-header"]], "interpreter": [[27, "term-interpreter"]], "machine code": [[27, "term-machine-code"]], "statically typed": [[27, "term-statically-typed"]], "back": [[36, "term-back"]], "beginfill": [[36, "term-beginfill"]], "delay": [[36, "term-delay"]], "endfill": [[36, "term-endfill"]], "fillcolor": [[36, "term-fillcolor"]], "forward": [[36, "term-forward"]], "goto": [[36, "term-goto"]], "left": [[36, "term-left"]], "pencolor": [[36, "term-pencolor"]], "pendown": [[36, "term-pendown"]], "penup": [[36, "term-penup"]], "right": [[36, "term-right"]], "speed": [[36, "term-speed"]], "undo queue": [[36, "term-undo-queue"]], "width": [[36, "term-width"]], "write": [[36, "term-write"]]}})