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